try to fix mac backend

This commit is contained in:
Patrick von Reth 2015-05-15 12:53:32 +02:00
parent 2f58f1163e
commit d1b54f7028
3 changed files with 5 additions and 5 deletions

View File

@ -30,10 +30,10 @@ class OSXNotificationCenter : public Snore::SnoreBackend
public: public:
OSXNotificationCenter(); OSXNotificationCenter();
~OSXNotificationCenter(); ~OSXNotificationCenter();
virtual bool initialize(Snore::SnoreCore *snore); virtual bool initialize() override;
public slots: public slots:
virtual void slotNotify(Snore::Notification notification); virtual void slotNotify(Snore::Notification notification) override;
}; };
#endif // OSXNOTIFICATIONCENTER_H #endif // OSXNOTIFICATIONCENTER_H

View File

@ -27,11 +27,11 @@ OSXNotificationCenter::~OSXNotificationCenter()
{ {
} }
bool OSXNotificationCenter::initialize(SnoreCore *snore) bool OSXNotificationCenter::initialize()
{ {
notification_center = [NSUserNotificationCenter defaultUserNotificationCenter]; notification_center = [NSUserNotificationCenter defaultUserNotificationCenter];
return SnoreBackend::initialize(snore); return SnoreBackend::initialize();
} }
void OSXNotificationCenter::slotNotify(Snore::Notification notification) void OSXNotificationCenter::slotNotify(Snore::Notification notification)

View File

@ -1,5 +1,5 @@
if(WITH_FRONTENDS) if(WITH_FRONTENDS)
add_subdirectory(freedesktop) add_subdirectory(freedesktop)
add_subdirectory(snarlnetwork) add_subdirectory(snarlnetwork)
add_subdirectory(snp3) #add_subdirectory(snp3)
endif() endif()