aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-02-23 12:02:30 (GMT)
committerfluxgen <fluxgen>2003-02-23 12:02:30 (GMT)
commit689d435c0f2918a8b03631f46dcdda4befb88e5f (patch)
tree20fd786d9847b470860dedf269648a97db17decf /src/Screen.cc
parent87215715ef75a1d5cc035c1fd6859c6af35acf4f (diff)
downloadfluxbox-689d435c0f2918a8b03631f46dcdda4befb88e5f.zip
fluxbox-689d435c0f2918a8b03631f46dcdda4befb88e5f.tar.bz2
added auto hide menu item for toolbar
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc9
1 files 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 @@
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: Screen.cc,v 1.115 2003/02/23 00:56:09 fluxgen Exp $ 25// $Id: Screen.cc,v 1.116 2003/02/23 12:02:30 fluxgen Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -528,8 +528,8 @@ BScreen::BScreen(ResourceManager &rm,
528 m_toolbar->setPlacement(*resource.toolbar_placement); 528 m_toolbar->setPlacement(*resource.toolbar_placement);
529 // setup toolbar width menu item 529 // setup toolbar width menu item
530 FbTk::MenuItem *toolbar_menuitem = new IntResMenuItem("Toolbar width percent", 530 FbTk::MenuItem *toolbar_menuitem = new IntResMenuItem("Toolbar width percent",
531 resource.toolbar_width_percent, 531 resource.toolbar_width_percent,
532 0, 100); // min/max value 532 0, 100); // min/max value
533 FbTk::RefCount<FbTk::Command> reconfig_toolbar(new FbTk:: 533 FbTk::RefCount<FbTk::Command> reconfig_toolbar(new FbTk::
534 SimpleCommand<Toolbar> 534 SimpleCommand<Toolbar>
535 (*(m_toolbar.get()), &Toolbar::reconfigure)); 535 (*(m_toolbar.get()), &Toolbar::reconfigure));
@@ -545,6 +545,9 @@ BScreen::BScreen(ResourceManager &rm,
545 toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource); 545 toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource);
546 546
547 m_toolbar->menu().insert(toolbar_menuitem, 0); 547 m_toolbar->menu().insert(toolbar_menuitem, 0);
548
549 m_toolbar->menu().insert(new BoolMenuItem("Auto hide", *resource.toolbar_auto_hide, reconfig_toolbar), 0);
550
548 551
549 setupWorkspacemenu(*this, *workspacemenu); 552 setupWorkspacemenu(*this, *workspacemenu);
550 553