diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 8 | ||||
-rw-r--r-- | src/Screen.cc | 4 | ||||
-rw-r--r-- | src/ToolFactory.cc | 4 | ||||
-rw-r--r-- | src/main.cc | 6 |
4 files changed, 18 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 235193d..257bdbb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -106,11 +106,14 @@ TOOLBAR_SOURCE = Toolbar.hh Toolbar.cc \ | |||
106 | WorkspaceNameTool.hh WorkspaceNameTool.cc WorkspaceNameTheme.hh \ | 106 | WorkspaceNameTool.hh WorkspaceNameTool.cc WorkspaceNameTheme.hh \ |
107 | IconbarTool.hh IconbarTool.cc \ | 107 | IconbarTool.hh IconbarTool.cc \ |
108 | ToolTheme.hh ToolTheme.cc \ | 108 | ToolTheme.hh ToolTheme.cc \ |
109 | SystemTray.hh SystemTray.cc \ | ||
110 | GenericTool.hh GenericTool.cc \ | 109 | GenericTool.hh GenericTool.cc \ |
111 | ButtonTool.hh ButtonTool.cc ButtonTheme.hh ButtonTheme.cc \ | 110 | ButtonTool.hh ButtonTool.cc ButtonTheme.hh ButtonTheme.cc \ |
112 | ToolFactory.hh ToolFactory.cc | 111 | ToolFactory.hh ToolFactory.cc |
112 | if SYSTRAY_SRC | ||
113 | TOOLBAR_SOURCE += SystemTray.hh SystemTray.cc | ||
113 | endif | 114 | endif |
115 | endif | ||
116 | |||
114 | 117 | ||
115 | if SLIT_SRC | 118 | if SLIT_SRC |
116 | SLIT_SOURCE = Slit.cc Slit.hh SlitTheme.hh SlitTheme.cc SlitClient.hh SlitClient.cc | 119 | SLIT_SOURCE = Slit.cc Slit.hh SlitTheme.hh SlitTheme.cc SlitClient.hh SlitClient.cc |
@@ -174,5 +177,4 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ | |||
174 | ${SLIT_SOURCE} \ | 177 | ${SLIT_SOURCE} \ |
175 | ${TOOLBAR_SOURCE} | 178 | ${TOOLBAR_SOURCE} |
176 | 179 | ||
177 | 180 | LDADD=FbTk/libFbTk.a defaults.$(OBJEXT) | |
178 | LDADD=FbTk/libFbTk.a FbTk/LogicCommands.o defaults.$(OBJEXT) | ||
diff --git a/src/Screen.cc b/src/Screen.cc index 7992a19..637bd82 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -55,7 +55,9 @@ | |||
55 | #include "HeadArea.hh" | 55 | #include "HeadArea.hh" |
56 | #include "RectangleUtil.hh" | 56 | #include "RectangleUtil.hh" |
57 | #include "FbCommands.hh" | 57 | #include "FbCommands.hh" |
58 | #ifdef USE_SYSTRAY | ||
58 | #include "SystemTray.hh" | 59 | #include "SystemTray.hh" |
60 | #endif | ||
59 | #include "Debug.hh" | 61 | #include "Debug.hh" |
60 | 62 | ||
61 | #include "FbTk/I18n.hh" | 63 | #include "FbTk/I18n.hh" |
@@ -1212,7 +1214,7 @@ bool BScreen::addKdeDockapp(Window client) { | |||
1212 | FbTk::EventManager *evm = FbTk::EventManager::instance(); | 1214 | FbTk::EventManager *evm = FbTk::EventManager::instance(); |
1213 | 1215 | ||
1214 | AtomHandler* handler = 0; | 1216 | AtomHandler* handler = 0; |
1215 | #if USE_TOOLBAR | 1217 | #if USE_SYSTRAY |
1216 | handler = Fluxbox::instance()->getAtomHandler(SystemTray::getNetSystemTrayAtom(screenNumber())); | 1218 | handler = Fluxbox::instance()->getAtomHandler(SystemTray::getNetSystemTrayAtom(screenNumber())); |
1217 | #endif | 1219 | #endif |
1218 | if (handler == 0) { | 1220 | if (handler == 0) { |
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 { |
diff --git a/src/main.cc b/src/main.cc index 74a3373..a8d4608 100644 --- a/src/main.cc +++ b/src/main.cc | |||
@@ -187,6 +187,12 @@ static void showInfo(ostream &ostr) { | |||
187 | #endif // SLIT | 187 | #endif // SLIT |
188 | "SLIT" << endl << | 188 | "SLIT" << endl << |
189 | 189 | ||
190 | #ifndef USE_SYSTRAY | ||
191 | NOT << | ||
192 | #endif | ||
193 | "SYSTEMTRAY" << endl << | ||
194 | |||
195 | |||
190 | #ifndef USE_TOOLBAR | 196 | #ifndef USE_TOOLBAR |
191 | NOT << | 197 | NOT << |
192 | #endif // USE_TOOLBAR | 198 | #endif // USE_TOOLBAR |