diff options
Diffstat (limited to 'src/LayerMenu.cc')
-rw-r--r-- | src/LayerMenu.cc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/LayerMenu.cc b/src/LayerMenu.cc index afcd4ac..cec0c59 100644 --- a/src/LayerMenu.cc +++ b/src/LayerMenu.cc | |||
@@ -1,6 +1,7 @@ | |||
1 | #include "LayerMenu.hh" | 1 | #include "LayerMenu.hh" |
2 | 2 | ||
3 | #include "fluxbox.hh" | 3 | #include "FbCommands.hh" |
4 | #include "Layer.hh" | ||
4 | 5 | ||
5 | #include "FbTk/RefCount.hh" | 6 | #include "FbTk/RefCount.hh" |
6 | #include "FbTk/SimpleCommand.hh" | 7 | #include "FbTk/SimpleCommand.hh" |
@@ -11,7 +12,6 @@ LayerMenu::LayerMenu(MenuTheme &tm, FbTk::ImageControl &imgctrl, | |||
11 | ToggleMenu(tm, imgctrl, layer) { | 12 | ToggleMenu(tm, imgctrl, layer) { |
12 | _FB_USES_NLS; | 13 | _FB_USES_NLS; |
13 | 14 | ||
14 | Fluxbox *fluxbox = Fluxbox::instance(); | ||
15 | 15 | ||
16 | struct { | 16 | struct { |
17 | int set; | 17 | int set; |
@@ -20,17 +20,15 @@ LayerMenu::LayerMenu(MenuTheme &tm, FbTk::ImageControl &imgctrl, | |||
20 | int layernum; | 20 | int layernum; |
21 | } layer_menuitems[] = { | 21 | } layer_menuitems[] = { |
22 | //TODO: nls | 22 | //TODO: nls |
23 | {0, 0, _FBTEXT(Layer, AboveDock, "Above Dock", "Layer above dock"), fluxbox->getAboveDockLayer()}, | 23 | {0, 0, _FBTEXT(Layer, AboveDock, "Above Dock", "Layer above dock"), Layer::ABOVE_DOCK}, |
24 | {0, 0, _FBTEXT(Layer, Dock, "Dock", "Layer dock"), fluxbox->getDockLayer()}, | 24 | {0, 0, _FBTEXT(Layer, Dock, "Dock", "Layer dock"), Layer::DOCK}, |
25 | {0, 0, _FBTEXT(Layer, Top, "Top", "Layer top"), fluxbox->getTopLayer()}, | 25 | {0, 0, _FBTEXT(Layer, Top, "Top", "Layer top"), Layer::TOP}, |
26 | {0, 0, _FBTEXT(Layer, Normal, "Normal", "Layer normal"), fluxbox->getNormalLayer()}, | 26 | {0, 0, _FBTEXT(Layer, Normal, "Normal", "Layer normal"), Layer::NORMAL}, |
27 | {0, 0, _FBTEXT(Layer, Bottom, "Bottom", "Layer bottom"), fluxbox->getBottomLayer()}, | 27 | {0, 0, _FBTEXT(Layer, Bottom, "Bottom", "Layer bottom"), Layer::BOTTOM}, |
28 | {0, 0, _FBTEXT(Layer, Desktop, "Desktop", "Layer desktop"), fluxbox->getDesktopLayer()}, | 28 | {0, 0, _FBTEXT(Layer, Desktop, "Desktop", "Layer desktop"), Layer::DESKTOP}, |
29 | }; | 29 | }; |
30 | 30 | ||
31 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 31 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbCommands::SaveResources()); |
32 | *Fluxbox::instance(), | ||
33 | &Fluxbox::save_rc)); | ||
34 | 32 | ||
35 | for (size_t i=0; i < 6; ++i) { | 33 | for (size_t i=0; i < 6; ++i) { |
36 | // TODO: fetch nls string | 34 | // TODO: fetch nls string |