You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/wbar/files/wbar-2.3.4-c++11.patch

55 lines
1.5 KiB

--- a/src/config/Functions.cc
+++ b/src/config/Functions.cc
@@ -11,7 +11,7 @@
#include "Run.h"
#include "OptParser.h"
-#define ICON_DEFAULT PIXMAPDIR"/"PACKAGE_NAME".png"
+#define ICON_DEFAULT PIXMAPDIR "/" PACKAGE_NAME ".png"
static const gchar *authors[] =
{
@@ -304,7 +304,7 @@
if (command.empty())
{
- command = PACKAGE_NAME" "DEFAULT_ARGV;
+ command = PACKAGE_NAME " " DEFAULT_ARGV;
}
if (argc <= 1 || tmpoptparser.isSet( OptParser::CONFIG ))
--- a/src/config/Run.cc
+++ b/src/config/Run.cc
@@ -125,9 +125,9 @@
bool Run::start(std::string command)
{
- if (system ((PACKAGE_NAME" " + command + " &").c_str()) != 0)
+ if (system ((PACKAGE_NAME " " + command + " &").c_str()) != 0)
{
- std::cout << _("Error run program: ") << PACKAGE_NAME" " + command << std::endl;
+ std::cout << _("Error run program: ") << PACKAGE_NAME " " + command << std::endl;
}
return Run::getPID() > 0;
}
@@ -136,7 +136,7 @@
{
if (Run::getPID() > 0)
{
- if (system ("killall "PACKAGE_NAME) != 0)
+ if (system ("killall " PACKAGE_NAME) != 0)
{
std::cout << _("Error kill program: ") << PACKAGE_NAME << std::endl;
}
--- a/src/core/Main.cc
+++ b/src/core/Main.cc
@@ -81,7 +81,7 @@
if (command.empty())
{
- command = PACKAGE_NAME" "DEFAULT_ARGV;
+ command = PACKAGE_NAME " " DEFAULT_ARGV;
}
if (argc <= 1 || tmpoptparser.isSet( OptParser::CONFIG ))