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/Keys.cc | |
parent | 90f4f1ecc1635fd5d144f86d64b1674958d0a59f (diff) | |
download | fluxbox_pavel-8516f1e2a21a374127ccfa3f7b8de2443e67fe33.zip fluxbox_pavel-8516f1e2a21a374127ccfa3f7b8de2443e67fe33.tar.bz2 |
changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>
Diffstat (limited to 'src/Keys.cc')
-rw-r--r-- | src/Keys.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index e102029..0be5384 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -32,7 +32,7 @@ | |||
32 | #include "FbTk/App.hh" | 32 | #include "FbTk/App.hh" |
33 | #include "FbTk/Command.hh" | 33 | #include "FbTk/Command.hh" |
34 | 34 | ||
35 | #include "FbTk/CommandRegistry.hh" | 35 | #include "FbTk/ObjectRegistry.hh" |
36 | #include "FbTk/I18n.hh" | 36 | #include "FbTk/I18n.hh" |
37 | 37 | ||
38 | #ifdef HAVE_CONFIG_H | 38 | #ifdef HAVE_CONFIG_H |
@@ -395,7 +395,7 @@ bool Keys::addBinding(const string &linebuffer) { | |||
395 | const char *str = FbTk::StringUtil::strcasestr(linebuffer.c_str(), | 395 | const char *str = FbTk::StringUtil::strcasestr(linebuffer.c_str(), |
396 | val[argc].c_str() + 1); // +1 to skip ':' | 396 | val[argc].c_str() + 1); // +1 to skip ':' |
397 | if (str) | 397 | if (str) |
398 | current_key->m_command = FbTk::CommandRegistry::instance().parseLine(str); | 398 | current_key->m_command = FbTk::ObjectRegistry<FbTk::Command>::instance().parse(str); |
399 | 399 | ||
400 | if (!str || *current_key->m_command == 0 || mod) { | 400 | if (!str || *current_key->m_command == 0 || mod) { |
401 | delete first_new_key; | 401 | delete first_new_key; |