summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2011-03-12 07:37:47 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2011-03-12 07:37:47 +0000
commit49e168c1597af23a4f1b7d1a2f15ae4c78d5f0e3 (patch)
tree3f4474ef1198344f27afd5c3ccbd5f282affcf63 /x11-misc/xneur/files
parentgnome-extra/alarm-clock-applet: Backport upstream patch for libnotify-0.7 com... (diff)
downloadsunrise-49e168c1597af23a4f1b7d1a2f15ae4c78d5f0e3.tar.gz
sunrise-49e168c1597af23a4f1b7d1a2f15ae4c78d5f0e3.tar.bz2
sunrise-49e168c1597af23a4f1b7d1a2f15ae4c78d5f0e3.zip
x11-misc/xneur: Add patch for libnotify-0.7 compatibility
svn path=/sunrise/; revision=11809
Diffstat (limited to 'x11-misc/xneur/files')
-rw-r--r--x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch b/x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch
new file mode 100644
index 000000000..080dcc680
--- /dev/null
+++ b/x11-misc/xneur/files/xneur-0.12.0-libnotify-0.7.patch
@@ -0,0 +1,28 @@
+diff -ru xneur-0.12.0-orig/lib/notify/popup.c xneur-0.12.0/lib/notify/popup.c
+--- xneur-0.12.0-orig/lib/notify/popup.c 2011-01-27 05:25:42.000000000 -0500
++++ xneur-0.12.0/lib/notify/popup.c 2011-03-12 02:21:20.411001315 -0500
+@@ -27,6 +27,10 @@
+
+ #include <libnotify/notify.h>
+
++#ifndef NOTIFY_CHECK_VERSION /* macro did not exist before libnotify-0.5.2 */
++# define NOTIFY_CHECK_VERSION(x,y,z) 0
++#endif
++
+ #include <pthread.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -73,8 +77,12 @@
+ popup_body->header = popup_body->content;
+ popup_body->content = NULL;
+ }
+-
++
++#if NOTIFY_CHECK_VERSION(0,7,0)
++ NotifyNotification *notify = notify_notification_new(popup_body->header, popup_body->content, icon);
++#else
+ NotifyNotification *notify = notify_notification_new(popup_body->header, popup_body->content, icon, NULL);
++#endif
+
+ notify_notification_set_category(notify, type);
+ notify_notification_set_urgency(notify, urgency);