diff options
Diffstat (limited to 'backends/platform/sdl/posix')
| -rw-r--r-- | backends/platform/sdl/posix/posix-main.cpp | 2 | ||||
| -rw-r--r-- | backends/platform/sdl/posix/posix.cpp | 11 | 
2 files changed, 12 insertions, 1 deletions
| diff --git a/backends/platform/sdl/posix/posix-main.cpp b/backends/platform/sdl/posix/posix-main.cpp index f78e001398..3bf7a5138a 100644 --- a/backends/platform/sdl/posix/posix-main.cpp +++ b/backends/platform/sdl/posix/posix-main.cpp @@ -22,7 +22,7 @@  #include "common/scummsys.h" -#if defined(POSIX) && !defined(MACOSX) && !defined(SAMSUNGTV) && !defined(WEBOS) && !defined(LINUXMOTO) && !defined(GPH_DEVICE) && !defined(GP2X) && !defined(DINGUX) && !defined(OPENPANDORA) +#if defined(POSIX) && !defined(MACOSX) && !defined(SAMSUNGTV) && !defined(WEBOS) && !defined(LINUXMOTO) && !defined(GPH_DEVICE) && !defined(GP2X) && !defined(DINGUX) && !defined(OPENPANDORA) && !defined(PLAYSTATION3)  #include "backends/platform/sdl/posix/posix.h"  #include "backends/plugins/sdl/sdl-provider.h" diff --git a/backends/platform/sdl/posix/posix.cpp b/backends/platform/sdl/posix/posix.cpp index d757186134..05c779a4e0 100644 --- a/backends/platform/sdl/posix/posix.cpp +++ b/backends/platform/sdl/posix/posix.cpp @@ -33,6 +33,7 @@  #include "backends/platform/sdl/posix/posix.h"  #include "backends/saves/posix/posix-saves.h"  #include "backends/fs/posix/posix-fs-factory.h" +#include "backends/taskbar/unity/unity-taskbar.h"  #include <errno.h>  #include <sys/stat.h> @@ -49,6 +50,11 @@ void OSystem_POSIX::init() {  	// Initialze File System Factory  	_fsFactory = new POSIXFilesystemFactory(); +#if defined(USE_TASKBAR) && defined(USE_TASKBAR_UNITY) +	// Initialize taskbar manager +	_taskbarManager = new UnityTaskbarManager(); +#endif +  	// Invoke parent implementation of this method  	OSystem_SDL::init();  } @@ -60,6 +66,11 @@ void OSystem_POSIX::initBackend() {  	// Invoke parent implementation of this method  	OSystem_SDL::initBackend(); + +#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  }  bool OSystem_POSIX::hasFeature(Feature f) { | 
