diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
commit | 9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch) | |
tree | 4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/FbTk/MultiButtonMenuItem.cc | |
parent | 1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff) | |
download | fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2 |
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/FbTk/MultiButtonMenuItem.cc')
-rw-r--r-- | src/FbTk/MultiButtonMenuItem.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/MultiButtonMenuItem.cc b/src/FbTk/MultiButtonMenuItem.cc index 42a096d..6fd8fee 100644 --- a/src/FbTk/MultiButtonMenuItem.cc +++ b/src/FbTk/MultiButtonMenuItem.cc | |||
@@ -45,7 +45,7 @@ MultiButtonMenuItem::~MultiButtonMenuItem() { | |||
45 | delete [] m_button_exe; | 45 | delete [] m_button_exe; |
46 | } | 46 | } |
47 | 47 | ||
48 | void MultiButtonMenuItem::setCommand(int button, FbTk::RefCount<FbTk::Command> &cmd) { | 48 | void MultiButtonMenuItem::setCommand(int button, FbTk::RefCount<FbTk::Command<void> > &cmd) { |
49 | if (button <= 0 || button > static_cast<signed>(buttons()) || buttons() == 0) | 49 | if (button <= 0 || button > static_cast<signed>(buttons()) || buttons() == 0) |
50 | return; | 50 | return; |
51 | m_button_exe[button - 1] = cmd; | 51 | m_button_exe[button - 1] = cmd; |
@@ -66,7 +66,7 @@ void MultiButtonMenuItem::init(int buttons) { | |||
66 | m_buttons = buttons; | 66 | m_buttons = buttons; |
67 | 67 | ||
68 | if (m_buttons != 0) | 68 | if (m_buttons != 0) |
69 | m_button_exe = new FbTk::RefCount<FbTk::Command>[m_buttons]; | 69 | m_button_exe = new FbTk::RefCount<FbTk::Command<void> >[m_buttons]; |
70 | else | 70 | else |
71 | m_button_exe = 0; | 71 | m_button_exe = 0; |
72 | } | 72 | } |