diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-16 03:36:01 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-16 03:36:01 (GMT) |
commit | 8516f1e2a21a374127ccfa3f7b8de2443e67fe33 (patch) | |
tree | a66f212f856981584b2b44bfc772096c5ee7bebe /src/ClockTool.cc | |
parent | 90f4f1ecc1635fd5d144f86d64b1674958d0a59f (diff) | |
download | fluxbox-8516f1e2a21a374127ccfa3f7b8de2443e67fe33.zip fluxbox-8516f1e2a21a374127ccfa3f7b8de2443e67fe33.tar.bz2 |
changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r-- | src/ClockTool.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc index 55973fb..b396999 100644 --- a/src/ClockTool.cc +++ b/src/ClockTool.cc | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #include "ToolTheme.hh" | 27 | #include "ToolTheme.hh" |
28 | #include "Screen.hh" | 28 | #include "Screen.hh" |
29 | #include "FbTk/CommandRegistry.hh" | 29 | #include "FbTk/ObjectRegistry.hh" |
30 | #include "CommandDialog.hh" | 30 | #include "CommandDialog.hh" |
31 | #include "fluxbox.hh" | 31 | #include "fluxbox.hh" |
32 | 32 | ||
@@ -128,7 +128,7 @@ public: | |||
128 | 128 | ||
129 | CommandDialog *dialog = new CommandDialog(*screen, "Edit Clock Format", | 129 | CommandDialog *dialog = new CommandDialog(*screen, "Edit Clock Format", |
130 | "SetResourceValue " + resourcename + " "); | 130 | "SetResourceValue " + resourcename + " "); |
131 | FbTk::RefCount<FbTk::Command> cmd(FbTk::CommandRegistry::instance().parseLine("reconfigure")); | 131 | FbTk::RefCount<FbTk::Command> cmd(FbTk::ObjectRegistry<FbTk::Command>::instance().parse("reconfigure")); |
132 | dialog->setPostCommand(cmd); | 132 | dialog->setPostCommand(cmd); |
133 | dialog->setText(screen->resourceManager().resourceValue(resourcename)); | 133 | dialog->setText(screen->resourceManager().resourceValue(resourcename)); |
134 | dialog->show(); | 134 | dialog->show(); |
@@ -169,7 +169,7 @@ ClockTool::ClockTool(const FbTk::FbWindow &parent, | |||
169 | m_button.setGC(m_theme.textGC()); | 169 | m_button.setGC(m_theme.textGC()); |
170 | 170 | ||
171 | // setup menu | 171 | // setup menu |
172 | FbTk::RefCount<FbTk::Command> saverc(FbTk::CommandRegistry::instance().parseLine("saverc")); | 172 | FbTk::RefCount<FbTk::Command> saverc(FbTk::ObjectRegistry<FbTk::Command>::instance().parse("saverc")); |
173 | FbTk::MenuItem *item = new ClockMenuItem(*this); | 173 | FbTk::MenuItem *item = new ClockMenuItem(*this); |
174 | item->setCommand(saverc); | 174 | item->setCommand(saverc); |
175 | menu.insert(item); | 175 | menu.insert(item); |