aboutsummaryrefslogtreecommitdiff
path: root/src/LayerMenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/LayerMenu.cc')
-rw-r--r--src/LayerMenu.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/LayerMenu.cc b/src/LayerMenu.cc
index d8612e5..778cb7d 100644
--- a/src/LayerMenu.cc
+++ b/src/LayerMenu.cc
@@ -35,7 +35,7 @@ LayerMenu::LayerMenu(FbTk::MenuTheme &tm, FbTk::ImageControl &imgctrl,
35 ToggleMenu(tm, imgctrl, layer) { 35 ToggleMenu(tm, imgctrl, layer) {
36 _FB_USES_NLS; 36 _FB_USES_NLS;
37 37
38 38
39 struct { 39 struct {
40 int set; 40 int set;
41 int base; 41 int base;
@@ -50,17 +50,17 @@ LayerMenu::LayerMenu(FbTk::MenuTheme &tm, FbTk::ImageControl &imgctrl,
50 {0, 0, _FB_XTEXT(Layer, Bottom, "Bottom", "Layer bottom"), Layer::BOTTOM}, 50 {0, 0, _FB_XTEXT(Layer, Bottom, "Bottom", "Layer bottom"), Layer::BOTTOM},
51 {0, 0, _FB_XTEXT(Layer, Desktop, "Desktop", "Layer desktop"), Layer::DESKTOP}, 51 {0, 0, _FB_XTEXT(Layer, Desktop, "Desktop", "Layer desktop"), Layer::DESKTOP},
52 }; 52 };
53 53
54 FbTk::RefCount<FbTk::Command> saverc_cmd(new FbCommands::SaveResources()); 54 FbTk::RefCount<FbTk::Command> saverc_cmd(new FbCommands::SaveResources());
55 55
56 for (size_t i=0; i < 6; ++i) { 56 for (size_t i=0; i < 6; ++i) {
57 // TODO: fetch nls string 57 // TODO: fetch nls string
58 if (save_rc) { 58 if (save_rc) {
59 insert(new LayerMenuItem(layer_menuitems[i].default_str, 59 insert(new LayerMenuItem(layer_menuitems[i].default_str,
60 object, layer_menuitems[i].layernum, saverc_cmd)); 60 object, layer_menuitems[i].layernum, saverc_cmd));
61 } else { 61 } else {
62 insert(new LayerMenuItem(layer_menuitems[i].default_str, 62 insert(new LayerMenuItem(layer_menuitems[i].default_str,
63 object, layer_menuitems[i].layernum)); 63 object, layer_menuitems[i].layernum));
64 } 64 }
65 } 65 }
66 updateMenu(); 66 updateMenu();