From 689d435c0f2918a8b03631f46dcdda4befb88e5f Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 23 Feb 2003 12:02:30 +0000 Subject: added auto hide menu item for toolbar --- src/Screen.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index ddce242..e39b28a 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.115 2003/02/23 00:56:09 fluxgen Exp $ +// $Id: Screen.cc,v 1.116 2003/02/23 12:02:30 fluxgen Exp $ #include "Screen.hh" @@ -528,8 +528,8 @@ BScreen::BScreen(ResourceManager &rm, m_toolbar->setPlacement(*resource.toolbar_placement); // setup toolbar width menu item FbTk::MenuItem *toolbar_menuitem = new IntResMenuItem("Toolbar width percent", - resource.toolbar_width_percent, - 0, 100); // min/max value + resource.toolbar_width_percent, + 0, 100); // min/max value FbTk::RefCount reconfig_toolbar(new FbTk:: SimpleCommand (*(m_toolbar.get()), &Toolbar::reconfigure)); @@ -545,6 +545,9 @@ BScreen::BScreen(ResourceManager &rm, toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource); m_toolbar->menu().insert(toolbar_menuitem, 0); + + m_toolbar->menu().insert(new BoolMenuItem("Auto hide", *resource.toolbar_auto_hide, reconfig_toolbar), 0); + setupWorkspacemenu(*this, *workspacemenu); -- cgit v0.11.2