diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-09-01 15:00:04 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-09-01 15:00:04 (GMT) |
commit | 13a73a78f604c2735089f98e2e89d097c2f324bc (patch) | |
tree | 0904944678da64987d13865876db70b24d1994e8 /src/Screen.cc | |
parent | 79eadb258f8cb975b4984e56b1f061b9d3e02dd5 (diff) | |
download | fluxbox-13a73a78f604c2735089f98e2e89d097c2f324bc.zip fluxbox-13a73a78f604c2735089f98e2e89d097c2f324bc.tar.bz2 |
highlight the nearest menu item when the current one is disabled, and add separators to focus model menu
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 4340ef1..23f85a5 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -37,6 +37,7 @@ | |||
37 | // menu items | 37 | // menu items |
38 | #include "FbTk/BoolMenuItem.hh" | 38 | #include "FbTk/BoolMenuItem.hh" |
39 | #include "FbTk/IntMenuItem.hh" | 39 | #include "FbTk/IntMenuItem.hh" |
40 | #include "FbTk/MenuSeparator.hh" | ||
40 | #include "FocusModelMenuItem.hh" | 41 | #include "FocusModelMenuItem.hh" |
41 | #include "RadioMenuItem.hh" | 42 | #include "RadioMenuItem.hh" |
42 | 43 | ||
@@ -1619,12 +1620,14 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1619 | FocusControl::MOUSEFOCUS); | 1620 | FocusControl::MOUSEFOCUS); |
1620 | #undef _FOCUSITEM | 1621 | #undef _FOCUSITEM |
1621 | 1622 | ||
1623 | focus_menu->insert(new FbTk::MenuSeparator()); | ||
1622 | focus_menu->insert(new TabFocusModelMenuItem(_FB_XTEXT(Configmenu, | 1624 | focus_menu->insert(new TabFocusModelMenuItem(_FB_XTEXT(Configmenu, |
1623 | ClickTabFocus, "ClickTabFocus", "Click tab to focus windows"), | 1625 | ClickTabFocus, "ClickTabFocus", "Click tab to focus windows"), |
1624 | focusControl(), FocusControl::CLICKTABFOCUS, save_and_reconfigure)); | 1626 | focusControl(), FocusControl::CLICKTABFOCUS, save_and_reconfigure)); |
1625 | focus_menu->insert(new TabFocusModelMenuItem(_FB_XTEXT(Configmenu, | 1627 | focus_menu->insert(new TabFocusModelMenuItem(_FB_XTEXT(Configmenu, |
1626 | MouseTabFocus, "MouseTabFocus", "Hover over tab to focus windows"), | 1628 | MouseTabFocus, "MouseTabFocus", "Hover over tab to focus windows"), |
1627 | focusControl(), FocusControl::MOUSETABFOCUS, save_and_reconfigure)); | 1629 | focusControl(), FocusControl::MOUSETABFOCUS, save_and_reconfigure)); |
1630 | focus_menu->insert(new FbTk::MenuSeparator()); | ||
1628 | 1631 | ||
1629 | try { | 1632 | try { |
1630 | focus_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Configmenu, FocusNew, | 1633 | focus_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Configmenu, FocusNew, |