From 5f84132c197f4f43895063c6b2d72828ce016578 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 7 Jun 2004 21:43:02 +0000 Subject: minor indent and using MenuSeparator --- src/IconbarTool.cc | 19 +++++++++++++------ 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: IconbarTool.cc,v 1.37 2004/06/07 11:46:04 rathnor Exp $ +// $Id: IconbarTool.cc,v 1.38 2004/06/07 21:43:02 fluxgen Exp $ #include "IconbarTool.hh" @@ -42,6 +42,7 @@ #include "FbTk/SimpleCommand.hh" #include "FbTk/ImageControl.hh" #include "FbTk/MacroCommand.hh" +#include "FbTk/MenuSeparator.hh" #include #include @@ -166,22 +167,27 @@ void setupModeMenu(FbTk::Menu &menu, IconbarTool &handler) { *Fluxbox::instance(), &Fluxbox::save_rc)); - menu.insert(new ToolbarModeMenuItem(_FBTEXT(Toolbar, IconbarModeNone, "None", "No icons are shown in the iconbar"), + + menu.insert(new ToolbarModeMenuItem(_FBTEXT(Toolbar, IconbarModeNone, + "None", "No icons are shown in the iconbar"), handler, IconbarTool::NONE, saverc_cmd)); menu.insert(new ToolbarModeMenuItem( - _FBTEXT(Toolbar, IconbarModeIcons, "Icons", "Iconified windows from all workspaces are shown"), + _FBTEXT(Toolbar, IconbarModeIcons, + "Icons", "Iconified windows from all workspaces are shown"), handler, IconbarTool::ICONS, saverc_cmd)); menu.insert(new ToolbarModeMenuItem( - _FBTEXT(Toolbar, IconbarModeWorkspaceIcons, "WorkspaceIcons", "Iconified windows from this workspace are shown"), + _FBTEXT(Toolbar, IconbarModeWorkspaceIcons, + "WorkspaceIcons", "Iconified windows from this workspace are shown"), handler, IconbarTool::WORKSPACEICONS, saverc_cmd)); menu.insert(new ToolbarModeMenuItem( - _FBTEXT(Toolbar, IconbarModeWorkspace, "Workspace", "Normal and iconified windows from this workspace are shown"), + _FBTEXT(Toolbar, IconbarModeWorkspace, + "Workspace", "Normal and iconified windows from this workspace are shown"), handler, IconbarTool::WORKSPACE, saverc_cmd)); @@ -207,7 +213,8 @@ void setupModeMenu(FbTk::Menu &menu, IconbarTool &handler) { handler, Container::RIGHT, saverc_cmd)); - menu.insert("---"); // separator line + menu.insert(new FbTk::MenuSeparator()); + menu.update(); } -- cgit v0.11.2