diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Configmenu.cc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc index e15ab81..71f5b9e 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc | |||
@@ -16,13 +16,13 @@ | |||
16 | // | 16 | // |
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
20 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 20 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Configmenu.cc,v 1.14 2002/04/28 16:00:27 fluxgen Exp $ | 25 | // $Id: Configmenu.cc,v 1.15 2002/05/08 14:19:12 fluxgen Exp $ |
26 | 26 | ||
27 | // stupid macros needed to access some functions in version 2 of the GNU C | 27 | // stupid macros needed to access some functions in version 2 of the GNU C |
28 | // library | 28 | // library |
@@ -40,7 +40,7 @@ | |||
40 | #include "Window.hh" | 40 | #include "Window.hh" |
41 | 41 | ||
42 | enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, | 42 | enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, |
43 | CMENU_WORKSPACE_WARPING, CMENU_TAB_ROTATE=21}; | 43 | CMENU_DESKTOP_WHEELING, CMENU_WORKSPACE_WARPING, CMENU_TAB_ROTATE=21}; |
44 | 44 | ||
45 | 45 | ||
46 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | 46 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { |
@@ -97,6 +97,9 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | |||
97 | insert(i18n->getMessage( | 97 | insert(i18n->getMessage( |
98 | ConfigmenuSet, ConfigmenuWorkspaceWarping, | 98 | ConfigmenuSet, ConfigmenuWorkspaceWarping, |
99 | "Workspace Warping"), CMENU_WORKSPACE_WARPING); | 99 | "Workspace Warping"), CMENU_WORKSPACE_WARPING); |
100 | insert(i18n->getMessage( | ||
101 | ConfigmenuSet, ConfigmenuDesktopWheeling, | ||
102 | "Desktop MouseWheel Switching"), CMENU_DESKTOP_WHEELING); | ||
100 | 103 | ||
101 | update(); | 104 | update(); |
102 | setItemSelected(8, screen->doMaxOverSlit()); | 105 | setItemSelected(8, screen->doMaxOverSlit()); |
@@ -110,6 +113,7 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | |||
110 | setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar()); | 113 | setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar()); |
111 | setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen->isSloppyWindowGrouping()); | 114 | setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen->isSloppyWindowGrouping()); |
112 | setItemSelected(CMENU_WORKSPACE_WARPING, screen->isWorkspaceWarping()); | 115 | setItemSelected(CMENU_WORKSPACE_WARPING, screen->isWorkspaceWarping()); |
116 | setItemSelected(CMENU_DESKTOP_WHEELING, screen->isDesktopWheeling()); | ||
113 | } | 117 | } |
114 | 118 | ||
115 | 119 | ||
@@ -193,6 +197,13 @@ void Configmenu::itemSelected(int button, unsigned int index) { | |||
193 | screen->reconfigure(); | 197 | screen->reconfigure(); |
194 | } | 198 | } |
195 | break; | 199 | break; |
200 | case CMENU_DESKTOP_WHEELING: | ||
201 | { | ||
202 | screen->saveDesktopWheeling(!screen->isDesktopWheeling()); | ||
203 | setItemSelected(index, screen->isDesktopWheeling()); | ||
204 | screen->reconfigure(); | ||
205 | } | ||
206 | break; | ||
196 | 207 | ||
197 | } | 208 | } |
198 | //save resources | 209 | //save resources |