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/Button.hh | |
parent | 1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff) | |
download | fluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip fluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2 |
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/FbTk/Button.hh')
-rw-r--r-- | src/FbTk/Button.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Button.hh b/src/FbTk/Button.hh index d6414b3..bcf909b 100644 --- a/src/FbTk/Button.hh +++ b/src/FbTk/Button.hh | |||
@@ -42,7 +42,7 @@ public: | |||
42 | virtual ~Button(); | 42 | virtual ~Button(); |
43 | 43 | ||
44 | /// sets action when the button is clicked with #button mouse btn | 44 | /// sets action when the button is clicked with #button mouse btn |
45 | void setOnClick(RefCount<Command> &com, int button = 1); | 45 | void setOnClick(RefCount<Command<void> > &com, int button = 1); |
46 | 46 | ||
47 | /// sets the pixmap to be viewed when the button is pressed | 47 | /// sets the pixmap to be viewed when the button is pressed |
48 | virtual void setPressedPixmap(Pixmap pm); | 48 | virtual void setPressedPixmap(Pixmap pm); |
@@ -83,7 +83,7 @@ private: | |||
83 | GC m_gc; ///< graphic context for button | 83 | GC m_gc; ///< graphic context for button |
84 | bool m_pressed; ///< if the button is pressed | 84 | bool m_pressed; ///< if the button is pressed |
85 | bool *mark_if_deleted; ///< if the button is deleted and this is set, make it true | 85 | bool *mark_if_deleted; ///< if the button is deleted and this is set, make it true |
86 | RefCount<Command> m_onclick[5]; ///< what to do when this button is clicked with button num | 86 | RefCount<Command<void> > m_onclick[5]; ///< what to do when this button is clicked with button num |
87 | }; | 87 | }; |
88 | 88 | ||
89 | } // namespace FbTk | 89 | } // namespace FbTk |