gentoo-full-overlay/media-sound/gejengel/files/gejengel-0.1.4-libnotify-0.7.patch

26 lines
683 B
Diff

--- 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);