minor indent and using MenuSeparator
This commit is contained in:
parent
bb31394000
commit
5f84132c19
1 changed files with 13 additions and 6 deletions
|
@ -20,7 +20,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "IconbarTool.hh"
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@
|
||||||
#include "FbTk/SimpleCommand.hh"
|
#include "FbTk/SimpleCommand.hh"
|
||||||
#include "FbTk/ImageControl.hh"
|
#include "FbTk/ImageControl.hh"
|
||||||
#include "FbTk/MacroCommand.hh"
|
#include "FbTk/MacroCommand.hh"
|
||||||
|
#include "FbTk/MenuSeparator.hh"
|
||||||
|
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -166,22 +167,27 @@ void setupModeMenu(FbTk::Menu &menu, IconbarTool &handler) {
|
||||||
*Fluxbox::instance(),
|
*Fluxbox::instance(),
|
||||||
&Fluxbox::save_rc));
|
&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,
|
handler,
|
||||||
IconbarTool::NONE, saverc_cmd));
|
IconbarTool::NONE, saverc_cmd));
|
||||||
|
|
||||||
menu.insert(new ToolbarModeMenuItem(
|
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,
|
handler,
|
||||||
IconbarTool::ICONS, saverc_cmd));
|
IconbarTool::ICONS, saverc_cmd));
|
||||||
|
|
||||||
menu.insert(new ToolbarModeMenuItem(
|
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,
|
handler,
|
||||||
IconbarTool::WORKSPACEICONS, saverc_cmd));
|
IconbarTool::WORKSPACEICONS, saverc_cmd));
|
||||||
|
|
||||||
menu.insert(new ToolbarModeMenuItem(
|
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,
|
handler,
|
||||||
IconbarTool::WORKSPACE, saverc_cmd));
|
IconbarTool::WORKSPACE, saverc_cmd));
|
||||||
|
|
||||||
|
@ -207,7 +213,8 @@ void setupModeMenu(FbTk::Menu &menu, IconbarTool &handler) {
|
||||||
handler,
|
handler,
|
||||||
Container::RIGHT, saverc_cmd));
|
Container::RIGHT, saverc_cmd));
|
||||||
|
|
||||||
menu.insert("---"); // separator line
|
menu.insert(new FbTk::MenuSeparator());
|
||||||
|
|
||||||
menu.update();
|
menu.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue