diff options
Diffstat (limited to 'src/BoolMenuItem.hh')
-rw-r--r-- | src/BoolMenuItem.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/BoolMenuItem.hh b/src/BoolMenuItem.hh index d10a7ac..c7e3d6c 100644 --- a/src/BoolMenuItem.hh +++ b/src/BoolMenuItem.hh | |||
@@ -44,7 +44,10 @@ public: | |||
44 | } | 44 | } |
45 | bool isSelected() const { return m_item; } | 45 | bool isSelected() const { return m_item; } |
46 | // toggle state | 46 | // toggle state |
47 | void click(int button, int time) { setSelected(!m_item); FbTk::MenuItem::click(button, time); } | 47 | void click(int button, int time, unsigned int mods) { |
48 | setSelected(!m_item); | ||
49 | FbTk::MenuItem::click(button, time, mods); | ||
50 | } | ||
48 | void setSelected(bool value) { | 51 | void setSelected(bool value) { |
49 | m_item = value; | 52 | m_item = value; |
50 | FbTk::MenuItem::setSelected(m_item); | 53 | FbTk::MenuItem::setSelected(m_item); |