aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorLittleboy2011-04-26 16:19:20 -0400
committerJulien2011-06-16 14:23:18 -0400
commit1e3603b9371204c88a60983cbfb61a4adcef0b94 (patch)
tree168124a1f173077ca8cdbc4b19c5f7e25767fe2b /backends/platform
parent28aa4f0f33c662b8d0c9273011d43237451b9659 (diff)
downloadscummvm-rg350-1e3603b9371204c88a60983cbfb61a4adcef0b94.tar.gz
scummvm-rg350-1e3603b9371204c88a60983cbfb61a4adcef0b94.tar.bz2
scummvm-rg350-1e3603b9371204c88a60983cbfb61a4adcef0b94.zip
BACKENDS: Add define for Unity-specific taskbar code
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/posix/posix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/posix/posix.cpp b/backends/platform/sdl/posix/posix.cpp
index 94f8d95ffb..05c779a4e0 100644
--- a/backends/platform/sdl/posix/posix.cpp
+++ b/backends/platform/sdl/posix/posix.cpp
@@ -50,7 +50,7 @@ void OSystem_POSIX::init() {
// Initialze File System Factory
_fsFactory = new POSIXFilesystemFactory();
-#if defined(USE_TASKBAR)
+#if defined(USE_TASKBAR) && defined(USE_TASKBAR_UNITY)
// Initialize taskbar manager
_taskbarManager = new UnityTaskbarManager();
#endif
@@ -67,7 +67,7 @@ void OSystem_POSIX::initBackend() {
// Invoke parent implementation of this method
OSystem_SDL::initBackend();
-#if defined(USE_TASKBAR)
+#if defined(USE_TASKBAR) && defined(USE_TASKBAR_UNITY)
// Register the taskbar manager as an event source (this is necessary for the glib event loop to be run)
_eventManager->getEventDispatcher()->registerSource((UnityTaskbarManager *)_taskbarManager, false);
#endif