summaryrefslogtreecommitdiffstats
path: root/main/zenity/zenity-2.32.1-libnotify-0.7.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-16 20:13:36 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-16 20:13:36 +0000
commit4e655271bc4c2a90f11041dbc6f887daf5d0ad0c (patch)
tree8867d0657d6e8423e73777936bb9ae372bdefe04 /main/zenity/zenity-2.32.1-libnotify-0.7.patch
parentdc307c1a4f3ade7b5c70b56c3ca310fdb0e60893 (diff)
downloadaports-4e655271bc4c2a90f11041dbc6f887daf5d0ad0c.tar.bz2
aports-4e655271bc4c2a90f11041dbc6f887daf5d0ad0c.tar.xz
main/zentiy: rebuild against libnotify-0.7
Diffstat (limited to 'main/zenity/zenity-2.32.1-libnotify-0.7.patch')
-rw-r--r--main/zenity/zenity-2.32.1-libnotify-0.7.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/zenity/zenity-2.32.1-libnotify-0.7.patch b/main/zenity/zenity-2.32.1-libnotify-0.7.patch
new file mode 100644
index 000000000..8b7fee738
--- /dev/null
+++ b/main/zenity/zenity-2.32.1-libnotify-0.7.patch
@@ -0,0 +1,27 @@
+--- ./src/notification.c
++++ ./src/notification.c
+@@ -30,6 +30,9 @@
+
+ #ifdef HAVE_LIBNOTIFY
+ #include <libnotify/notify.h>
++#ifndef NOTIFY_CHECK_VERSION
++#define NOTIFY_CHECK_VERSION(x,y,z) 0
++#endif
+ #endif
+
+ #include "zenity.h"
+@@ -184,10 +187,14 @@
+ icon = freeme = g_filename_to_uri (icon_file, NULL, NULL);
+ }
+
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ /* notify_notification_new_with_status_icon was removed */
++#else
+ notif = notify_notification_new_with_status_icon (
+ message[0] /* title */,
+ message[1] /* summary */,
+ icon, status_icon);
++#endif
+
+ g_strfreev (message);
+ g_free (freeme);