aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-06-07 21:43:02 (GMT)
committerfluxgen <fluxgen>2004-06-07 21:43:02 (GMT)
commit5f84132c197f4f43895063c6b2d72828ce016578 (patch)
treeb74e0b463b3a0199f685458a21b5dac4f6f6e4f9
parentbb31394000cf4840b26348bfa6a397d6e699bbdd (diff)
downloadfluxbox_paul-5f84132c197f4f43895063c6b2d72828ce016578.zip
fluxbox_paul-5f84132c197f4f43895063c6b2d72828ce016578.tar.bz2
minor indent and using MenuSeparator
-rw-r--r--src/IconbarTool.cc19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 502117a..5434696 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: IconbarTool.cc,v 1.37 2004/06/07 11:46:04 rathnor Exp $ 23// $Id: IconbarTool.cc,v 1.38 2004/06/07 21:43:02 fluxgen Exp $
24 24
25#include "IconbarTool.hh" 25#include "IconbarTool.hh"
26 26
@@ -42,6 +42,7 @@
42#include "FbTk/SimpleCommand.hh" 42#include "FbTk/SimpleCommand.hh"
43#include "FbTk/ImageControl.hh" 43#include "FbTk/ImageControl.hh"
44#include "FbTk/MacroCommand.hh" 44#include "FbTk/MacroCommand.hh"
45#include "FbTk/MenuSeparator.hh"
45 46
46#include <typeinfo> 47#include <typeinfo>
47#include <string> 48#include <string>
@@ -166,22 +167,27 @@ void setupModeMenu(FbTk::Menu &menu, IconbarTool &handler) {
166 *Fluxbox::instance(), 167 *Fluxbox::instance(),
167 &Fluxbox::save_rc)); 168 &Fluxbox::save_rc));
168 169
169 menu.insert(new ToolbarModeMenuItem(_FBTEXT(Toolbar, IconbarModeNone, "None", "No icons are shown in the iconbar"), 170
171 menu.insert(new ToolbarModeMenuItem(_FBTEXT(Toolbar, IconbarModeNone,
172 "None", "No icons are shown in the iconbar"),
170 handler, 173 handler,
171 IconbarTool::NONE, saverc_cmd)); 174 IconbarTool::NONE, saverc_cmd));
172 175
173 menu.insert(new ToolbarModeMenuItem( 176 menu.insert(new ToolbarModeMenuItem(
174 _FBTEXT(Toolbar, IconbarModeIcons, "Icons", "Iconified windows from all workspaces are shown"), 177 _FBTEXT(Toolbar, IconbarModeIcons,
178 "Icons", "Iconified windows from all workspaces are shown"),
175 handler, 179 handler,
176 IconbarTool::ICONS, saverc_cmd)); 180 IconbarTool::ICONS, saverc_cmd));
177 181
178 menu.insert(new ToolbarModeMenuItem( 182 menu.insert(new ToolbarModeMenuItem(
179 _FBTEXT(Toolbar, IconbarModeWorkspaceIcons, "WorkspaceIcons", "Iconified windows from this workspace are shown"), 183 _FBTEXT(Toolbar, IconbarModeWorkspaceIcons,
184 "WorkspaceIcons", "Iconified windows from this workspace are shown"),
180 handler, 185 handler,
181 IconbarTool::WORKSPACEICONS, saverc_cmd)); 186 IconbarTool::WORKSPACEICONS, saverc_cmd));
182 187
183 menu.insert(new ToolbarModeMenuItem( 188 menu.insert(new ToolbarModeMenuItem(
184 _FBTEXT(Toolbar, IconbarModeWorkspace, "Workspace", "Normal and iconified windows from this workspace are shown"), 189 _FBTEXT(Toolbar, IconbarModeWorkspace,
190 "Workspace", "Normal and iconified windows from this workspace are shown"),
185 handler, 191 handler,
186 IconbarTool::WORKSPACE, saverc_cmd)); 192 IconbarTool::WORKSPACE, saverc_cmd));
187 193
@@ -207,7 +213,8 @@ void setupModeMenu(FbTk::Menu &menu, IconbarTool &handler) {
207 handler, 213 handler,
208 Container::RIGHT, saverc_cmd)); 214 Container::RIGHT, saverc_cmd));
209 215
210 menu.insert("---"); // separator line 216 menu.insert(new FbTk::MenuSeparator());
217
211 menu.update(); 218 menu.update();
212} 219}
213 220