diff options
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/daemon.cpp | 16 | ||||
-rw-r--r-- | src/daemon/daemon.h | 12 |
2 files changed, 26 insertions, 2 deletions
diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp index 957541e..d680f72 100644 --- a/src/daemon/daemon.cpp +++ b/src/daemon/daemon.cpp @@ -44,9 +44,21 @@ #include "daemon.h" -TDEPassivePopupStackContainer* GTKNotifierContainer = NULL; +NotificationContainer* GTKNotifierContainer = NULL; void real_handleGTKMain(); +NotificationContainer::NotificationContainer() : TDEPassivePopupStackContainer() { + // +} + +NotificationContainer::~NotificationContainer() { + // +} + +void NotificationContainer::handleGTKMain() { + real_handleGTKMain(); +} + #undef signals #include <dbus/dbus.h> @@ -287,7 +299,7 @@ main(int argc, char **argv) TDECmdLineArgs::init(argc, argv, &aboutData); TDEApplication app; - TDEPassivePopupStackContainer nc; + NotificationContainer nc; app.setMainWidget(&nc); GTKNotifierContainer = &nc; TQTimer *gtkEventProcessor = new TQTimer( &app ); diff --git a/src/daemon/daemon.h b/src/daemon/daemon.h index 8931293..768f438 100644 --- a/src/daemon/daemon.h +++ b/src/daemon/daemon.h @@ -22,6 +22,18 @@ #ifndef NOTIFY_DAEMON_H #define NOTIFY_DAEMON_H +class TDEUI_EXPORT NotificationContainer : public TDEPassivePopupStackContainer +{ + Q_OBJECT + + public: + NotificationContainer(); + ~NotificationContainer(); + + public slots: + void handleGTKMain(); +}; + #include <glib.h> #include <glib-object.h> |