diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 2766c06..1970ad0 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1513,21 +1513,14 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1513 | menu.removeAll(); | 1513 | menu.removeAll(); |
1514 | 1514 | ||
1515 | FbTk::MacroCommand *s_a_reconf_macro = new FbTk::MacroCommand(); | 1515 | FbTk::MacroCommand *s_a_reconf_macro = new FbTk::MacroCommand(); |
1516 | FbTk::MacroCommand *s_a_reconftabs_macro = new FbTk::MacroCommand(); | ||
1517 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 1516 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( |
1518 | *Fluxbox::instance(), | 1517 | *Fluxbox::instance(), |
1519 | &Fluxbox::save_rc)); | 1518 | &Fluxbox::save_rc)); |
1520 | FbTk::RefCount<FbTk::Command<void> > reconf_cmd(FbTk::CommandParser<void>::instance().parse("reconfigure")); | 1519 | FbTk::RefCount<FbTk::Command<void> > reconf_cmd(FbTk::CommandParser<void>::instance().parse("reconfigure")); |
1521 | 1520 | ||
1522 | FbTk::RefCount<FbTk::Command<void> > reconftabs_cmd(new FbTk::SimpleCommand<BScreen>( | ||
1523 | *this, | ||
1524 | &BScreen::reconfigureTabs)); | ||
1525 | s_a_reconf_macro->add(saverc_cmd); | 1521 | s_a_reconf_macro->add(saverc_cmd); |
1526 | s_a_reconf_macro->add(reconf_cmd); | 1522 | s_a_reconf_macro->add(reconf_cmd); |
1527 | s_a_reconftabs_macro->add(saverc_cmd); | ||
1528 | s_a_reconftabs_macro->add(reconftabs_cmd); | ||
1529 | FbTk::RefCount<FbTk::Command<void> > save_and_reconfigure(s_a_reconf_macro); | 1523 | FbTk::RefCount<FbTk::Command<void> > save_and_reconfigure(s_a_reconf_macro); |
1530 | FbTk::RefCount<FbTk::Command<void> > save_and_reconftabs(s_a_reconftabs_macro); | ||
1531 | // create focus menu | 1524 | // create focus menu |
1532 | // we don't set this to internal menu so will | 1525 | // we don't set this to internal menu so will |
1533 | // be deleted toghether with the parent | 1526 | // be deleted toghether with the parent |
@@ -1650,7 +1643,7 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1650 | "Width of external-style tabs"), | 1643 | "Width of external-style tabs"), |
1651 | resource.tab_width, 10, 3000, /* silly number */ | 1644 | resource.tab_width, 10, 3000, /* silly number */ |
1652 | *tab_menu); | 1645 | *tab_menu); |
1653 | tab_width_item->setCommand(save_and_reconftabs); | 1646 | tab_width_item->setCommand(saverc_cmd); |
1654 | tab_menu->insert(tab_width_item); | 1647 | tab_menu->insert(tab_width_item); |
1655 | 1648 | ||
1656 | // menu is 3 wide, 5 down | 1649 | // menu is 3 wide, 5 down |