summaryrefslogtreecommitdiffstats
path: root/desktop/wbar/wbar-2.3.4-c++11.patch
blob: fead9e9b4cb3c28b1ca701e7960a824fe9630548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- 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 ))