diff options
-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 | ||