diff options
author | fluxgen <fluxgen> | 2003-05-12 23:05:19 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-05-12 23:05:19 (GMT) |
commit | cffa01d79bc4b4c4e5bdb8a306b4cd22147533ac (patch) | |
tree | 5112c2e3a158dfadabd60d2bac8d6034f1805dfe /src | |
parent | 2ea2bbe364c7d0a95561413d0cb8a684f8f11d66 (diff) | |
download | fluxbox_pavel-cffa01d79bc4b4c4e5bdb8a306b4cd22147533ac.zip fluxbox_pavel-cffa01d79bc4b4c4e5bdb8a306b4cd22147533ac.tar.bz2 |
added auto hide option to toolbar menu
Diffstat (limited to 'src')
-rw-r--r-- | src/Toolbar.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 6354022..aa39622 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.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: Toolbar.cc,v 1.79 2003/05/11 13:36:11 fluxgen Exp $ | 25 | // $Id: Toolbar.cc,v 1.80 2003/05/12 23:05:19 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Toolbar.hh" | 27 | #include "Toolbar.hh" |
28 | 28 | ||
@@ -40,6 +40,7 @@ | |||
40 | #include "IntResMenuItem.hh" | 40 | #include "IntResMenuItem.hh" |
41 | #include "MacroCommand.hh" | 41 | #include "MacroCommand.hh" |
42 | #include "RootTheme.hh" | 42 | #include "RootTheme.hh" |
43 | #include "BoolMenuItem.hh" | ||
43 | 44 | ||
44 | // use GNU extensions | 45 | // use GNU extensions |
45 | #ifndef _GNU_SOURCE | 46 | #ifndef _GNU_SOURCE |
@@ -96,8 +97,7 @@ void setupMenus(Toolbar &tbar) { | |||
96 | FbTk::Menu &menu = tbar.menu(); | 97 | FbTk::Menu &menu = tbar.menu(); |
97 | 98 | ||
98 | RefCount<Command> start_edit(new SimpleCommand<Toolbar>(tbar, &Toolbar::edit)); | 99 | RefCount<Command> start_edit(new SimpleCommand<Toolbar>(tbar, &Toolbar::edit)); |
99 | menu.insert(i18n->getMessage( | 100 | menu.insert(i18n->getMessage(FBNLS::ToolbarSet, FBNLS::ToolbarEditWkspcName, |
100 | FBNLS::ToolbarSet, FBNLS::ToolbarEditWkspcName, | ||
101 | "Edit current workspace name"), | 101 | "Edit current workspace name"), |
102 | start_edit); | 102 | start_edit); |
103 | 103 | ||
@@ -123,7 +123,12 @@ void setupMenus(Toolbar &tbar) { | |||
123 | FbTk::RefCount<FbTk::Command> reconfig_toolbar_and_save_resource(toolbar_menuitem_macro); | 123 | FbTk::RefCount<FbTk::Command> reconfig_toolbar_and_save_resource(toolbar_menuitem_macro); |
124 | toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource); | 124 | toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource); |
125 | 125 | ||
126 | tbar.menu().insert(toolbar_menuitem); | 126 | menu.insert(toolbar_menuitem); |
127 | |||
128 | menu.insert(new BoolMenuItem(i18n->getMessage(FBNLS::CommonSet, FBNLS::CommonAutoHide, | ||
129 | "Auto hide"), | ||
130 | tbar.screen().doToolbarAutoHide(), | ||
131 | reconfig_toolbar_and_save_resource)); | ||
127 | 132 | ||
128 | menu.setInternalMenu(); | 133 | menu.setInternalMenu(); |
129 | 134 | ||