diff options
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 10 |
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 | ||
118 | private: | 119 | private: |
@@ -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 | ||
136 | private: | 138 | private: |