diff options
author | fluxgen <fluxgen> | 2002-01-04 21:21:43 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-01-04 21:21:43 (GMT) |
commit | bec0065e4a5a4d0c487bd47ec208b9d30a7b9399 (patch) | |
tree | 916d78b2c52f6f4241d7a50ece648e96d16e0ea9 /src/Configmenu.cc | |
parent | 502f1a959cf14691097d2fcdefc5afdcf8e706d5 (diff) | |
download | fluxbox_pavel-bec0065e4a5a4d0c487bd47ec208b9d30a7b9399.zip fluxbox_pavel-bec0065e4a5a4d0c487bd47ec208b9d30a7b9399.tar.bz2 |
pekdon patch
Diffstat (limited to 'src/Configmenu.cc')
-rw-r--r-- | src/Configmenu.cc | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc index 5eda254..4eba0d6 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc | |||
@@ -36,6 +36,7 @@ | |||
36 | 36 | ||
37 | #define CMENU_USE_TABS 8 | 37 | #define CMENU_USE_TABS 8 |
38 | #define CMENU_USE_ICONS 9 | 38 | #define CMENU_USE_ICONS 9 |
39 | #define CMENU_SLOPPY_WIN_GROUP 10 | ||
39 | #define CMENU_TAB_ROTATE 21 | 40 | #define CMENU_TAB_ROTATE 21 |
40 | 41 | ||
41 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | 42 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { |
@@ -128,8 +129,13 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | |||
128 | 0, 0, | 129 | 0, 0, |
129 | #endif // NLS | 130 | #endif // NLS |
130 | "Use Icons"), CMENU_USE_ICONS); | 131 | "Use Icons"), CMENU_USE_ICONS); |
131 | 132 | insert(i18n->getMessage( | |
132 | 133 | #ifdef NLS | |
134 | ConfigmenuSet, ConfigmenuSloppyWindowGrouping, | ||
135 | #else // !NLS | ||
136 | 0, 0, | ||
137 | #endif // NLS | ||
138 | "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP); | ||
133 | 139 | ||
134 | update(); | 140 | update(); |
135 | 141 | ||
@@ -140,6 +146,7 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | |||
140 | setItemSelected(7, screen->doFocusLast()); | 146 | setItemSelected(7, screen->doFocusLast()); |
141 | setItemSelected(CMENU_USE_TABS, Fluxbox::instance()->useTabs()); | 147 | setItemSelected(CMENU_USE_TABS, Fluxbox::instance()->useTabs()); |
142 | setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar()); | 148 | setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar()); |
149 | setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen->isSloppyWindowGrouping()); | ||
143 | } | 150 | } |
144 | 151 | ||
145 | 152 | ||
@@ -203,6 +210,14 @@ void Configmenu::itemSelected(int button, int index) { | |||
203 | screen->reconfigure(); | 210 | screen->reconfigure(); |
204 | } | 211 | } |
205 | break; | 212 | break; |
213 | case CMENU_SLOPPY_WIN_GROUP: | ||
214 | { | ||
215 | screen->saveSloppyWindowGrouping(!screen->isSloppyWindowGrouping()); | ||
216 | setItemSelected(index, screen->isSloppyWindowGrouping()); | ||
217 | screen->reconfigure(); | ||
218 | } | ||
219 | break; | ||
220 | |||
206 | } | 221 | } |
207 | } | 222 | } |
208 | } | 223 | } |