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 0772048..63143ec 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1443,21 +1443,14 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1443 | menu.removeAll(); | 1443 | menu.removeAll(); |
1444 | 1444 | ||
1445 | FbTk::MacroCommand *s_a_reconf_macro = new FbTk::MacroCommand(); | 1445 | FbTk::MacroCommand *s_a_reconf_macro = new FbTk::MacroCommand(); |
1446 | FbTk::MacroCommand *s_a_reconftabs_macro = new FbTk::MacroCommand(); | ||
1447 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 1446 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( |
1448 | *Fluxbox::instance(), | 1447 | *Fluxbox::instance(), |
1449 | &Fluxbox::save_rc)); | 1448 | &Fluxbox::save_rc)); |
1450 | FbTk::RefCount<FbTk::Command<void> > reconf_cmd(FbTk::CommandParser<void>::instance().parse("reconfigure")); | 1449 | FbTk::RefCount<FbTk::Command<void> > reconf_cmd(FbTk::CommandParser<void>::instance().parse("reconfigure")); |
1451 | 1450 | ||
1452 | FbTk::RefCount<FbTk::Command<void> > reconftabs_cmd(new FbTk::SimpleCommand<BScreen>( | ||
1453 | *this, | ||
1454 | &BScreen::reconfigureTabs)); | ||
1455 | s_a_reconf_macro->add(saverc_cmd); | 1451 | s_a_reconf_macro->add(saverc_cmd); |
1456 | s_a_reconf_macro->add(reconf_cmd); | 1452 | s_a_reconf_macro->add(reconf_cmd); |
1457 | s_a_reconftabs_macro->add(saverc_cmd); | ||
1458 | s_a_reconftabs_macro->add(reconftabs_cmd); | ||
1459 | FbTk::RefCount<FbTk::Command<void> > save_and_reconfigure(s_a_reconf_macro); | 1453 | FbTk::RefCount<FbTk::Command<void> > save_and_reconfigure(s_a_reconf_macro); |
1460 | FbTk::RefCount<FbTk::Command<void> > save_and_reconftabs(s_a_reconftabs_macro); | ||
1461 | // create focus menu | 1454 | // create focus menu |
1462 | // we don't set this to internal menu so will | 1455 | // we don't set this to internal menu so will |
1463 | // be deleted toghether with the parent | 1456 | // be deleted toghether with the parent |
@@ -1569,7 +1562,7 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1569 | "Width of external-style tabs"), | 1562 | "Width of external-style tabs"), |
1570 | resource.tab_width, 10, 3000, /* silly number */ | 1563 | resource.tab_width, 10, 3000, /* silly number */ |
1571 | *tab_menu); | 1564 | *tab_menu); |
1572 | tab_width_item->setCommand(save_and_reconftabs); | 1565 | tab_width_item->setCommand(saverc_cmd); |
1573 | tab_menu->insert(tab_width_item); | 1566 | tab_menu->insert(tab_width_item); |
1574 | 1567 | ||
1575 | // menu is 3 wide, 5 down | 1568 | // menu is 3 wide, 5 down |