summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-01-11 09:33:33 (GMT)
committerfluxgen <fluxgen>2002-01-11 09:33:33 (GMT)
commit7711198c7f3f53ced8487b4adc5af98994bc826b (patch)
treeb482b53df4774dff6a64e2fa0b269a20275cafb9
parentcbb2880f8cf9c7a5953c88891d336a2abc57c38c (diff)
downloadfluxbox_lack-7711198c7f3f53ced8487b4adc5af98994bc826b.zip
fluxbox_lack-7711198c7f3f53ced8487b4adc5af98994bc826b.tar.bz2
fixed enums
-rw-r--r--src/Rootmenu.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Rootmenu.cc b/src/Rootmenu.cc
index c86879f..9e0c83b 100644
--- a/src/Rootmenu.cc
+++ b/src/Rootmenu.cc
@@ -65,7 +65,7 @@ void Rootmenu::itemSelected(int button, int index) {
65 65
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()) {
70 #ifndef __EMX__ 70 #ifndef __EMX__
71 char displaystring[MAXPATHLEN]; 71 char displaystring[MAXPATHLEN];
@@ -81,33 +81,33 @@ void Rootmenu::itemSelected(int button, int index) {
81 } 81 }
82 break; 82 break;
83 83
84 case BScreen::Restart: 84 case BScreen::RESTART:
85 fluxbox->restart(); 85 fluxbox->restart();
86 break; 86 break;
87 87
88 case BScreen::RestartOther: 88 case BScreen::RESTARTOTHER:
89 if (item->exec()) 89 if (item->exec())
90 fluxbox->restart(item->exec()); 90 fluxbox->restart(item->exec());
91 break; 91 break;
92 92
93 case BScreen::Exit: 93 case BScreen::EXIT:
94 fluxbox->shutdown(); 94 fluxbox->shutdown();
95 break; 95 break;
96 96
97 case BScreen::SetStyle: 97 case BScreen::SETSTYLE:
98 if (item->exec()) { 98 if (item->exec()) {
99 fluxbox->saveStyleFilename(item->exec()); 99 fluxbox->saveStyleFilename(item->exec());
100 fluxbox->reconfigureTabs(); //TODO 100 fluxbox->reconfigureTabs(); //TODO
101 } 101 }
102 102
103 case BScreen::Reconfigure: 103 case BScreen::RECONFIGURE:
104 fluxbox->reconfigure(); 104 fluxbox->reconfigure();
105 return; 105 return;
106 } 106 }
107 107
108 if (! (screen->getRootmenu()->isTorn() || isTorn()) && 108 if (! (screen->getRootmenu()->isTorn() || isTorn()) &&
109 item->function() != BScreen::Reconfigure && 109 item->function() != BScreen::RECONFIGURE &&
110 item->function() != BScreen::SetStyle) 110 item->function() != BScreen::SETSTYLE)
111 hide(); 111 hide();
112 } 112 }
113 } 113 }