aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-03 15:51:51 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2012-04-07 02:11:30 (GMT)
commitadd8bcec482acaff30a3d408c5043ee251251ea3 (patch)
tree9e31fca39d639919e968ade006a8d66cf4e919c3 /src
parent26defa21dc1cc7e5f4753d258a6c972736cb7531 (diff)
downloadfluxbox_paul-add8bcec482acaff30a3d408c5043ee251251ea3.zip
fluxbox_paul-add8bcec482acaff30a3d408c5043ee251251ea3.tar.bz2
Fix a bug in the default root menu
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index b9d9a71..18a710e 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1381,13 +1381,17 @@ void BScreen::rereadMenu() {
1381 1381
1382 if (m_rootmenu->numberOfItems() == 0) { 1382 if (m_rootmenu->numberOfItems() == 0) {
1383 _FB_USES_NLS; 1383 _FB_USES_NLS;
1384 typedef FbTk::RefCount<FbTk::Command<void> > RefCmd;
1385 const FbTk::CommandParser<void> &parser = FbTk::CommandParser<void>::instance();
1386
1384 m_rootmenu->setLabel(_FB_XTEXT(Menu, DefaultRootMenu, "Fluxbox default menu", "Title of fallback root menu")); 1387 m_rootmenu->setLabel(_FB_XTEXT(Menu, DefaultRootMenu, "Fluxbox default menu", "Title of fallback root menu"));
1385 FbTk::RefCount<FbTk::Command<void> > restart_fb(FbTk::CommandParser<void>::instance().parse("restart")); 1388 RefCmd execute_xterm(parser.parse("exec", "xterm"));
1386 FbTk::RefCount<FbTk::Command<void> > exit_fb(FbTk::CommandParser<void>::instance().parse("exit")); 1389 RefCmd reconfigure_fb(parser.parse("reconfigure"));
1387 FbTk::RefCount<FbTk::Command<void> > execute_xterm(FbTk::CommandParser<void>::instance().parse("exec xterm")); 1390 RefCmd restart_fb(parser.parse("restart"));
1391 RefCmd exit_fb(parser.parse("exit"));
1388 m_rootmenu->insert("xterm", execute_xterm); 1392 m_rootmenu->insert("xterm", execute_xterm);
1389 m_rootmenu->insert(_FB_XTEXT(Menu, Reconfigure, "Reconfigure", 1393 m_rootmenu->insert(_FB_XTEXT(Menu, Reconfigure, "Reconfigure",
1390 "Reload Configuration command")), 1394 "Reload Configuration command"), reconfigure_fb);
1391 m_rootmenu->insert(_FB_XTEXT(Menu, Restart, "Restart", "Restart command"), 1395 m_rootmenu->insert(_FB_XTEXT(Menu, Restart, "Restart", "Restart command"),
1392 restart_fb); 1396 restart_fb);
1393 m_rootmenu->insert(_FB_XTEXT(Menu, Exit, "Exit", "Exit command"), 1397 m_rootmenu->insert(_FB_XTEXT(Menu, Exit, "Exit", "Exit command"),