aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
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/IconbarTool.cc
parent31df2d8bd618cae590d9b0e76aee11021d4c77d3 (diff)
downloadfluxbox_pavel-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.zip
fluxbox_pavel-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.tar.bz2
holding control will now keep the menu open
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r--src/IconbarTool.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 1e575dc..99907c7 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -108,11 +108,12 @@ public:
108 string mode, 108 string mode,
109 FbTk::RefCount<FbTk::Command> &cmd): 109 FbTk::RefCount<FbTk::Command> &cmd):
110 FbTk::MenuItem(label, cmd), m_handler(handler), m_mode(mode) { 110 FbTk::MenuItem(label, cmd), m_handler(handler), m_mode(mode) {
111 setCloseOnClick(false);
111 } 112 }
112 bool isEnabled() const { return m_handler.mode() != m_mode; } 113 bool isEnabled() const { return m_handler.mode() != m_mode; }
113 void click(int button, int time) { 114 void click(int button, int time, unsigned int mods) {
114 m_handler.setMode(m_mode); 115 m_handler.setMode(m_mode);
115 FbTk::MenuItem::click(button, time); 116 FbTk::MenuItem::click(button, time, mods);
116 } 117 }
117 118
118private: 119private:
@@ -126,11 +127,12 @@ public:
126 Container::Alignment mode, 127 Container::Alignment mode,
127 FbTk::RefCount<FbTk::Command> &cmd): 128 FbTk::RefCount<FbTk::Command> &cmd):
128 FbTk::MenuItem(label, cmd), m_handler(handler), m_mode(mode) { 129 FbTk::MenuItem(label, cmd), m_handler(handler), m_mode(mode) {
130 setCloseOnClick(false);
129 } 131 }
130 bool isEnabled() const { return m_handler.alignment() != m_mode; } 132 bool isEnabled() const { return m_handler.alignment() != m_mode; }
131 void click(int button, int time) { 133 void click(int button, int time, unsigned int mods) {
132 m_handler.setAlignment(m_mode); 134 m_handler.setAlignment(m_mode);
133 FbTk::MenuItem::click(button, time); 135 FbTk::MenuItem::click(button, time, mods);
134 } 136 }
135 137
136private: 138private: