summaryrefslogtreecommitdiff
path: root/community/ario/ario-1.5-libnotify-0.7.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/ario/ario-1.5-libnotify-0.7.patch
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/ario/ario-1.5-libnotify-0.7.patch')
-rw-r--r--community/ario/ario-1.5-libnotify-0.7.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/community/ario/ario-1.5-libnotify-0.7.patch b/community/ario/ario-1.5-libnotify-0.7.patch
new file mode 100644
index 000000000..75749b6d1
--- /dev/null
+++ b/community/ario/ario-1.5-libnotify-0.7.patch
@@ -0,0 +1,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