From 2d06be1026fc69b8ef4fa0ce7eff31d63431b6f5 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 21 Sep 2015 23:33:18 -0500 Subject: Fix incorrect slots --- src/daemon/daemon.cpp | 16 ++++++++++++++-- src/daemon/daemon.h | 12 ++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ -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 #include -- cgit v1.2.3