diff options
author | fluxgen <fluxgen> | 2006-02-20 21:04:35 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-02-20 21:04:35 (GMT) |
commit | 369b4e1b92491aa57b0bf430b89bf732b80fa6a4 (patch) | |
tree | 2bf00a93ad1c195ef7d446e8989069f218a2cd47 /src/IconbarTool.cc | |
parent | 2566d84561ce9f5ecaf1adcce97eb578747034e3 (diff) | |
download | fluxbox-369b4e1b92491aa57b0bf430b89bf732b80fa6a4.zip fluxbox-369b4e1b92491aa57b0bf430b89bf732b80fa6a4.tar.bz2 |
moved class Layer from class Fluxbox and thus reduces some dependecies
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index 61ac45d..e860ce2 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc | |||
@@ -29,12 +29,13 @@ | |||
29 | #include "Window.hh" | 29 | #include "Window.hh" |
30 | #include "IconButton.hh" | 30 | #include "IconButton.hh" |
31 | #include "Workspace.hh" | 31 | #include "Workspace.hh" |
32 | #include "fluxbox.hh" | ||
33 | #include "FbMenu.hh" | 32 | #include "FbMenu.hh" |
34 | #include "BoolMenuItem.hh" | 33 | #include "BoolMenuItem.hh" |
35 | #include "CommandParser.hh" | 34 | #include "CommandParser.hh" |
36 | #include "WinClient.hh" | 35 | #include "WinClient.hh" |
37 | #include "FocusControl.hh" | 36 | #include "FocusControl.hh" |
37 | #include "FbCommands.hh" | ||
38 | #include "Layer.hh" | ||
38 | 39 | ||
39 | #include "FbTk/I18n.hh" | 40 | #include "FbTk/I18n.hh" |
40 | #include "FbTk/Menu.hh" | 41 | #include "FbTk/Menu.hh" |
@@ -236,9 +237,7 @@ void setupModeMenu(FbTk::Menu &menu, IconbarTool &handler) { | |||
236 | 237 | ||
237 | menu.setLabel(_FBTEXT(Toolbar, IconbarMode, "Iconbar Mode", "Menu title - chooses which set of icons are shown in the iconbar")); | 238 | menu.setLabel(_FBTEXT(Toolbar, IconbarMode, "Iconbar Mode", "Menu title - chooses which set of icons are shown in the iconbar")); |
238 | 239 | ||
239 | RefCount<Command> saverc_cmd(new SimpleCommand<Fluxbox>( | 240 | RefCount<Command> saverc_cmd(new FbCommands::SaveResources()); |
240 | *Fluxbox::instance(), | ||
241 | &Fluxbox::save_rc)); | ||
242 | 241 | ||
243 | 242 | ||
244 | menu.insert(new ToolbarModeMenuItem(_FBTEXT(Toolbar, IconbarModeNone, | 243 | menu.insert(new ToolbarModeMenuItem(_FBTEXT(Toolbar, IconbarModeNone, |
@@ -382,7 +381,7 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme, BScr | |||
382 | m_rc_use_pixmap(screen.resourceManager(), true, | 381 | m_rc_use_pixmap(screen.resourceManager(), true, |
383 | screen.name() + ".iconbar.usePixmap", screen.altName() + ".Iconbar.UsePixmap"), | 382 | screen.name() + ".iconbar.usePixmap", screen.altName() + ".Iconbar.UsePixmap"), |
384 | m_menu(screen.menuTheme(), screen.imageControl(), | 383 | m_menu(screen.menuTheme(), screen.imageControl(), |
385 | *screen.layerManager().getLayer(Fluxbox::instance()->getMenuLayer())) { | 384 | *screen.layerManager().getLayer(Layer::MENU)) { |
386 | 385 | ||
387 | // setup mode menu | 386 | // setup mode menu |
388 | setupModeMenu(m_menu, *this); | 387 | setupModeMenu(m_menu, *this); |