aboutsummaryrefslogtreecommitdiff
path: root/src/BoolMenuItem.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-18 05:44:17 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-18 05:44:17 (GMT)
commitc01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0 (patch)
tree7e25c017727402a33fd8e4c851b5bab9e6add568 /src/BoolMenuItem.hh
parent31df2d8bd618cae590d9b0e76aee11021d4c77d3 (diff)
downloadfluxbox-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.zip
fluxbox-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.tar.bz2
holding control will now keep the menu open
Diffstat (limited to 'src/BoolMenuItem.hh')
-rw-r--r--src/BoolMenuItem.hh5
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);