diff options
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 { |