aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MultiButtonMenuItem.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
commit9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch)
tree4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/FbTk/MultiButtonMenuItem.hh
parent1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff)
downloadfluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip
fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/FbTk/MultiButtonMenuItem.hh')
-rw-r--r--src/FbTk/MultiButtonMenuItem.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/MultiButtonMenuItem.hh b/src/FbTk/MultiButtonMenuItem.hh
index 6d717af..5d67bdf 100644
--- a/src/FbTk/MultiButtonMenuItem.hh
+++ b/src/FbTk/MultiButtonMenuItem.hh
@@ -34,7 +34,7 @@ public:
34 MultiButtonMenuItem(int buttons, const FbString &label, Menu *submenu); 34 MultiButtonMenuItem(int buttons, const FbString &label, Menu *submenu);
35 virtual ~MultiButtonMenuItem(); 35 virtual ~MultiButtonMenuItem();
36 /// sets command to specified button 36 /// sets command to specified button
37 void setCommand(int button, FbTk::RefCount<FbTk::Command> &cmd); 37 void setCommand(int button, FbTk::RefCount<FbTk::Command<void> > &cmd);
38 /// executes command for the button click 38 /// executes command for the button click
39 virtual void click(int button, int time, unsigned int mods); 39 virtual void click(int button, int time, unsigned int mods);
40 /// @return number of buttons this instance handles 40 /// @return number of buttons this instance handles
@@ -43,7 +43,7 @@ public:
43private: 43private:
44 void init(int buttons); 44 void init(int buttons);
45 45
46 FbTk::RefCount<FbTk::Command> *m_button_exe; 46 FbTk::RefCount<FbTk::Command<void> > *m_button_exe;
47 unsigned int m_buttons; 47 unsigned int m_buttons;
48}; 48};
49 49