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
27
|
http://bugzilla.xfce.org/show_bug.cgi?id=7239
--- plugins/tray/tray-provider.c
+++ plugins/tray/tray-provider.c
@@ -29,6 +29,9 @@
#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
#endif
#include <libxfcegui4/libxfcegui4.h>
@@ -260,8 +263,11 @@
}
message = g_strdup_printf ("%s %s %s %s", _("<b>Playing:</b>"), title, _("<b>Duration:</b>"), timestring);
-
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ tray->n = notify_notification_new (title, message, NULL);
+#else
tray->n = notify_notification_new (title, message, NULL, NULL);
+#endif
g_free (title);
g_free (message);
|