diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2013-01-10 11:11:24 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-01-10 11:11:24 (GMT) |
commit | 06655f6d7ff2af0626d37f083b927af2af1be529 (patch) | |
tree | 484f8d0ab80e642b2b2a3bef02b6a045903e564e /src/ToolFactory.cc | |
parent | 79fe2fca1de5140f538e68f6981b27cf7f917e7a (diff) | |
download | fluxbox_pavel-06655f6d7ff2af0626d37f083b927af2af1be529.zip fluxbox_pavel-06655f6d7ff2af0626d37f083b927af2af1be529.tar.bz2 |
Optional removal of SystemTray tool
Added the option to remove the SystemTray tool completely from
fluxbox.
Diffstat (limited to 'src/ToolFactory.cc')
-rw-r--r-- | src/ToolFactory.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ToolFactory.cc b/src/ToolFactory.cc index ee4666e..5da2777 100644 --- a/src/ToolFactory.cc +++ b/src/ToolFactory.cc | |||
@@ -24,7 +24,9 @@ | |||
24 | // Tools | 24 | // Tools |
25 | #include "ButtonTool.hh" | 25 | #include "ButtonTool.hh" |
26 | #include "ClockTool.hh" | 26 | #include "ClockTool.hh" |
27 | #ifdef USE_SYSTRAY | ||
27 | #include "SystemTray.hh" | 28 | #include "SystemTray.hh" |
29 | #endif | ||
28 | #include "IconbarTool.hh" | 30 | #include "IconbarTool.hh" |
29 | #include "WorkspaceNameTool.hh" | 31 | #include "WorkspaceNameTool.hh" |
30 | #include "ArrowButton.hh" | 32 | #include "ArrowButton.hh" |
@@ -87,7 +89,9 @@ ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow & | |||
87 | } else if (name == "iconbar") { | 89 | } else if (name == "iconbar") { |
88 | item = new IconbarTool(parent, m_iconbar_theme, m_focused_iconbar_theme, m_unfocused_iconbar_theme, screen(), tbar.menu()); | 90 | item = new IconbarTool(parent, m_iconbar_theme, m_focused_iconbar_theme, m_unfocused_iconbar_theme, screen(), tbar.menu()); |
89 | } else if (name == "systemtray") { | 91 | } else if (name == "systemtray") { |
92 | #ifdef USE_SYSTRAY | ||
90 | item = new SystemTray(parent, dynamic_cast<ButtonTheme &>(*m_systray_theme), screen()); | 93 | item = new SystemTray(parent, dynamic_cast<ButtonTheme &>(*m_systray_theme), screen()); |
94 | #endif | ||
91 | } else if (name == "clock") { | 95 | } else if (name == "clock") { |
92 | item = new ClockTool(parent, m_clock_theme, screen(), tbar.menu()); | 96 | item = new ClockTool(parent, m_clock_theme, screen(), tbar.menu()); |
93 | } else { | 97 | } else { |