aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-12-13 05:48:00 (GMT)
committermarkt <markt>2007-12-13 05:48:00 (GMT)
commit8b7464046cea5e521ac46811591b0fce0c45aca1 (patch)
tree09df752f426a249ae15375a626a98436c8727593 /src/Toolbar.cc
parentdaca07edafc2e75eb9ee04d35fe80759308a8583 (diff)
downloadfluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.zip
fluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.tar.bz2
added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 55ae1d3..3e446d8 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -44,7 +44,7 @@
44#endif // XINERAMA 44#endif // XINERAMA
45 45
46#include "Strut.hh" 46#include "Strut.hh"
47#include "CommandParser.hh" 47#include "FbTk/CommandRegistry.hh"
48#include "Layer.hh" 48#include "Layer.hh"
49 49
50#include "FbTk/I18n.hh" 50#include "FbTk/I18n.hh"
@@ -823,7 +823,7 @@ void Toolbar::setupMenus(bool skip_new_placement) {
823 "Toolbar", "Title of Toolbar menu")); 823 "Toolbar", "Title of Toolbar menu"));
824 824
825 RefCommand reconfig_toolbar(new ToolbarCommand(*this, &Toolbar::reconfigure)); 825 RefCommand reconfig_toolbar(new ToolbarCommand(*this, &Toolbar::reconfigure));
826 RefCommand save_resources(CommandParser::instance().parseLine("saverc")); 826 RefCommand save_resources(FbTk::CommandRegistry::instance().parseLine("saverc"));
827 MacroCommand *toolbar_menuitem_macro = new MacroCommand(); 827 MacroCommand *toolbar_menuitem_macro = new MacroCommand();
828 toolbar_menuitem_macro->add(reconfig_toolbar); 828 toolbar_menuitem_macro->add(reconfig_toolbar);
829 toolbar_menuitem_macro->add(save_resources); 829 toolbar_menuitem_macro->add(save_resources);