1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- src/Plugins/notificationplugin.cpp
+++ src/Plugins/notificationplugin.cpp
@@ -33,6 +33,10 @@
#include "ui/sharedfunctions.h"
#include "MusicLibrary/album.h"
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
using namespace std;
using namespace Gtk;
@@ -85,7 +89,12 @@
}
}
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ m_pNotification = notify_notification_new("dummy", "", NULL);
+#else
m_pNotification = notify_notification_new("dummy", "", NULL, NULL);
+#endif
+
notify_notification_set_timeout (m_pNotification, NOTIFY_EXPIRES_DEFAULT);
notify_notification_set_urgency (m_pNotification, NOTIFY_URGENCY_NORMAL);
|