aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-04-08 22:24:50 (GMT)
committerfluxgen <fluxgen>2002-04-08 22:24:50 (GMT)
commitc3fef77fa4dcdd2ec87e8a8f82e8fae256ccbccf (patch)
treeb72a10f5d7cd80c598498a871d3a97c9324b6872
parent0e60ec478f984cff3753ff60115a0d426604f101 (diff)
downloadfluxbox_pavel-c3fef77fa4dcdd2ec87e8a8f82e8fae256ccbccf.zip
fluxbox_pavel-c3fef77fa4dcdd2ec87e8a8f82e8fae256ccbccf.tar.bz2
updated BasemenuItem
-rw-r--r--src/Rootmenu.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Rootmenu.cc b/src/Rootmenu.cc
index 46bbe34..c0de857 100644
--- a/src/Rootmenu.cc
+++ b/src/Rootmenu.cc
@@ -66,7 +66,7 @@ void Rootmenu::itemSelected(int button, unsigned int index) {
66 if (item->function()) { 66 if (item->function()) {
67 switch (item->function()) { 67 switch (item->function()) {
68 case BScreen::EXECUTE: 68 case BScreen::EXECUTE:
69 if (item->exec()) { 69 if (item->exec().size()) {
70 #ifndef __EMX__ 70 #ifndef __EMX__
71 char displaystring[MAXPATHLEN]; 71 char displaystring[MAXPATHLEN];
72 sprintf(displaystring, "DISPLAY=%s", 72 sprintf(displaystring, "DISPLAY=%s",
@@ -74,9 +74,9 @@ void Rootmenu::itemSelected(int button, unsigned int index) {
74 sprintf(displaystring + strlen(displaystring) - 1, "%d", 74 sprintf(displaystring + strlen(displaystring) - 1, "%d",
75 screen->getScreenNumber()); 75 screen->getScreenNumber());
76 76
77 bexec(item->exec(), displaystring); 77 bexec(item->exec().c_str(), displaystring);
78 #else // __EMX__ 78 #else // __EMX__
79 spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec(), NULL); 79 spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec().c_str(), NULL);
80 #endif // !__EMX__ 80 #endif // !__EMX__
81 } 81 }
82 break; 82 break;
@@ -86,8 +86,8 @@ void Rootmenu::itemSelected(int button, unsigned int index) {
86 break; 86 break;
87 87
88 case BScreen::RESTARTOTHER: 88 case BScreen::RESTARTOTHER:
89 if (item->exec()) 89 if (item->exec().size())
90 fluxbox->restart(item->exec()); 90 fluxbox->restart(item->exec().c_str());
91 break; 91 break;
92 92
93 case BScreen::EXIT: 93 case BScreen::EXIT:
@@ -95,8 +95,8 @@ void Rootmenu::itemSelected(int button, unsigned int index) {
95 break; 95 break;
96 96
97 case BScreen::SETSTYLE: 97 case BScreen::SETSTYLE:
98 if (item->exec()) { 98 if (item->exec().size()) {
99 fluxbox->saveStyleFilename(item->exec()); 99 fluxbox->saveStyleFilename(item->exec().c_str());
100 fluxbox->reconfigureTabs(); //TODO 100 fluxbox->reconfigureTabs(); //TODO
101 } 101 }
102 102