aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-16 03:36:01 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-16 03:36:01 (GMT)
commit8516f1e2a21a374127ccfa3f7b8de2443e67fe33 (patch)
treea66f212f856981584b2b44bfc772096c5ee7bebe /src/Screen.cc
parent90f4f1ecc1635fd5d144f86d64b1674958d0a59f (diff)
downloadfluxbox_pavel-8516f1e2a21a374127ccfa3f7b8de2443e67fe33.zip
fluxbox_pavel-8516f1e2a21a374127ccfa3f7b8de2443e67fe33.tar.bz2
changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 1651824..d27f8c4 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -60,7 +60,7 @@
60#include "WinClient.hh" 60#include "WinClient.hh"
61#include "FbWinFrame.hh" 61#include "FbWinFrame.hh"
62#include "Strut.hh" 62#include "Strut.hh"
63#include "FbTk/CommandRegistry.hh" 63#include "FbTk/ObjectRegistry.hh"
64#include "AtomHandler.hh" 64#include "AtomHandler.hh"
65#include "HeadArea.hh" 65#include "HeadArea.hh"
66#include "FbCommands.hh" 66#include "FbCommands.hh"
@@ -815,7 +815,7 @@ void BScreen::propertyNotify(Atom atom) {
815 &ret_bytes_after, (unsigned char **)&str); 815 &ret_bytes_after, (unsigned char **)&str);
816 } 816 }
817 817
818 FbTk::RefCount<FbTk::Command> cmd(FbTk::CommandRegistry::instance().parseLine(str, false)); 818 FbTk::RefCount<FbTk::Command> cmd(FbTk::ObjectRegistry<FbTk::Command>::instance().parse(str, false));
819 if (cmd.get()) 819 if (cmd.get())
820 cmd->execute(); 820 cmd->execute();
821 XFree(str); 821 XFree(str);
@@ -1531,9 +1531,9 @@ void BScreen::initMenu() {
1531 if (m_rootmenu.get() == 0) { 1531 if (m_rootmenu.get() == 0) {
1532 _FB_USES_NLS; 1532 _FB_USES_NLS;
1533 m_rootmenu.reset(createMenu(_FB_XTEXT(Menu, DefaultRootMenu, "Fluxbox default menu", "Title of fallback root menu"))); 1533 m_rootmenu.reset(createMenu(_FB_XTEXT(Menu, DefaultRootMenu, "Fluxbox default menu", "Title of fallback root menu")));
1534 FbTk::RefCount<FbTk::Command> restart_fb(FbTk::CommandRegistry::instance().parseLine("restart")); 1534 FbTk::RefCount<FbTk::Command> restart_fb(FbTk::ObjectRegistry<FbTk::Command>::instance().parse("restart"));
1535 FbTk::RefCount<FbTk::Command> exit_fb(FbTk::CommandRegistry::instance().parseLine("exit")); 1535 FbTk::RefCount<FbTk::Command> exit_fb(FbTk::ObjectRegistry<FbTk::Command>::instance().parse("exit"));
1536 FbTk::RefCount<FbTk::Command> execute_xterm(FbTk::CommandRegistry::instance().parseLine("exec xterm")); 1536 FbTk::RefCount<FbTk::Command> execute_xterm(FbTk::ObjectRegistry<FbTk::Command>::instance().parse("exec xterm"));
1537 m_rootmenu->setInternalMenu(); 1537 m_rootmenu->setInternalMenu();
1538 m_rootmenu->insert("xterm", execute_xterm); 1538 m_rootmenu->insert("xterm", execute_xterm);
1539 m_rootmenu->insert(_FB_XTEXT(Menu, Restart, "Restart", "Restart command"), 1539 m_rootmenu->insert(_FB_XTEXT(Menu, Restart, "Restart", "Restart command"),
@@ -1578,7 +1578,7 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) {
1578 FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( 1578 FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>(
1579 *Fluxbox::instance(), 1579 *Fluxbox::instance(),
1580 &Fluxbox::save_rc)); 1580 &Fluxbox::save_rc));
1581 FbTk::RefCount<FbTk::Command> reconf_cmd(FbTk::CommandRegistry::instance().parseLine("reconfigure")); 1581 FbTk::RefCount<FbTk::Command> reconf_cmd(FbTk::ObjectRegistry<FbTk::Command>::instance().parse("reconfigure"));
1582 1582
1583 FbTk::RefCount<FbTk::Command> reconftabs_cmd(new FbTk::SimpleCommand<BScreen>( 1583 FbTk::RefCount<FbTk::Command> reconftabs_cmd(new FbTk::SimpleCommand<BScreen>(
1584 *this, 1584 *this,