aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.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/Keys.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/Keys.cc')
-rw-r--r--src/Keys.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 06a0d48..e102029 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 "CommandParser.hh" 35#include "FbTk/CommandRegistry.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 = CommandParser::instance().parseLine(str); 398 current_key->m_command = FbTk::CommandRegistry::instance().parseLine(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;