diff options
author | simonb <simonb> | 2006-04-16 12:03:31 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-16 12:03:31 (GMT) |
commit | 29f975b302c1cc4ab758871811894dfe572a4f24 (patch) | |
tree | 3d8b4cfb07813b6846b0269f47b4d2e9d5727e16 /src/IconButton.cc | |
parent | 67b8277af0856320a8fc0be1515f01ba40456e45 (diff) | |
download | fluxbox-29f975b302c1cc4ab758871811894dfe572a4f24.zip fluxbox-29f975b302c1cc4ab758871811894dfe572a4f24.tar.bz2 |
add reversewheeling option
thanks Kalle - ice_jkpg at users.sourceforge.net
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r-- | src/IconButton.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc index d36987f..015065c 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc | |||
@@ -161,9 +161,14 @@ IconButton::IconButton(const IconbarTool& tool, const FbTk::FbWindow &parent, | |||
161 | RefCmd menu_cmd(new ::ShowMenu(m_win)); | 161 | RefCmd menu_cmd(new ::ShowMenu(m_win)); |
162 | setOnClick(focus_cmd, 1); | 162 | setOnClick(focus_cmd, 1); |
163 | setOnClick(menu_cmd, 3); | 163 | setOnClick(menu_cmd, 3); |
164 | setOnClick(next_workspace, 4); | 164 | if(win.screen().isReverseWheeling()) { |
165 | setOnClick(prev_workspace, 5); | 165 | setOnClick(next_workspace, 5); |
166 | 166 | setOnClick(prev_workspace, 4); | |
167 | } else { | ||
168 | setOnClick(next_workspace, 4); | ||
169 | setOnClick(prev_workspace, 5); | ||
170 | } | ||
171 | |||
167 | m_win.hintSig().attach(this); | 172 | m_win.hintSig().attach(this); |
168 | 173 | ||
169 | FbTk::EventManager::instance()->add(*this, m_icon_window); | 174 | FbTk::EventManager::instance()->add(*this, m_icon_window); |