summaryrefslogtreecommitdiff
path: root/community/ario/ario-1.5-libnotify-0.7.patch
blob: 75749b6d13b450efc2a833e576cdf2901a0b0adc (plain)
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
--- plugins/libnotify/ario-notifier-libnotify.c
+++ plugins/libnotify/ario-notifier-libnotify.c
@@ -30,6 +30,10 @@
 #include "lib/ario-conf.h"
 #include "ario-debug.h"
 
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
 struct ArioNotifierLibnotifyPrivate
 {
         NotifyNotification *notification;
@@ -122,9 +126,13 @@
         ARIO_LOG_FUNCTION_START;
         notifier_libnotify->priv = ARIO_NOTIFIER_LIBNOTIFY_GET_PRIVATE (notifier_libnotify);
 
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+        notifier_libnotify->priv->notification = notify_notification_new ("Ario",  NULL, NULL);
+#else
         notifier_libnotify->priv->notification = notify_notification_new ("Ario",  NULL, NULL, NULL);
         notify_notification_attach_to_status_icon (notifier_libnotify->priv->notification,
                                                    GTK_STATUS_ICON (ario_tray_icon_get_instance ()));
+#endif
 }
 
 static void