aboutsummaryrefslogtreecommitdiff
path: root/src/Configmenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Configmenu.cc')
-rw-r--r--src/Configmenu.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc
index 04f7a78..2fed074 100644
--- a/src/Configmenu.cc
+++ b/src/Configmenu.cc
@@ -22,7 +22,7 @@
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.17 2002/10/15 09:49:51 fluxgen Exp $ 25// $Id: Configmenu.cc,v 1.18 2002/10/15 10:57:28 fluxgen Exp $
26 26
27#include "Configmenu.hh" 27#include "Configmenu.hh"
28 28
@@ -33,7 +33,7 @@
33#include "Tab.hh" 33#include "Tab.hh"
34 34
35enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, 35enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP,
36 CMENU_DESKTOP_WHEELING, CMENU_WORKSPACE_WARPING, CMENU_TAB_ROTATE=21}; 36 CMENU_DESKTOP_WHEELING, CMENU_WORKSPACE_WARPING, CMENU_ANTIALIAS, CMENU_TAB_ROTATE=21};
37 37
38 38
39Configmenu::Configmenu(BScreen *scr) : Basemenu(scr), 39Configmenu::Configmenu(BScreen *scr) : Basemenu(scr),
@@ -92,6 +92,8 @@ m_tabmenu(scr) {
92 insert(i18n->getMessage( 92 insert(i18n->getMessage(
93 ConfigmenuSet, ConfigmenuDesktopWheeling, 93 ConfigmenuSet, ConfigmenuDesktopWheeling,
94 "Desktop MouseWheel Switching"), CMENU_DESKTOP_WHEELING); 94 "Desktop MouseWheel Switching"), CMENU_DESKTOP_WHEELING);
95 //TODO: really need i18n for this?
96 insert("Antialias", CMENU_ANTIALIAS);
95 97
96 update(); 98 update();
97 setItemSelected(8, screen()->doMaxOverSlit()); 99 setItemSelected(8, screen()->doMaxOverSlit());
@@ -106,6 +108,7 @@ m_tabmenu(scr) {
106 setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen()->isSloppyWindowGrouping()); 108 setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen()->isSloppyWindowGrouping());
107 setItemSelected(CMENU_WORKSPACE_WARPING, screen()->isWorkspaceWarping()); 109 setItemSelected(CMENU_WORKSPACE_WARPING, screen()->isWorkspaceWarping());
108 setItemSelected(CMENU_DESKTOP_WHEELING, screen()->isDesktopWheeling()); 110 setItemSelected(CMENU_DESKTOP_WHEELING, screen()->isDesktopWheeling());
111 setItemSelected(CMENU_ANTIALIAS, screen()->antialias());
109} 112}
110 113
111 114
@@ -194,7 +197,11 @@ void Configmenu::itemSelected(int button, unsigned int index) {
194 screen()->reconfigure(); 197 screen()->reconfigure();
195 } 198 }
196 break; 199 break;
197 200 case CMENU_ANTIALIAS:
201 // Note: no need to reconfigure here, screen reconfigures if antialias changes
202 screen()->setAntialias(!screen()->antialias());
203 setItemSelected(index, screen()->antialias());
204 break;
198 } 205 }
199 //save resources 206 //save resources
200 Fluxbox::instance()->save_rc(); 207 Fluxbox::instance()->save_rc();