summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-03-29 10:41:40 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-03-29 10:41:40 +0000
commit9d776d4e9fab4ef982721b80c697fc9015c4fe77 (patch)
tree23ab24e05a992a0c6b24dc6320d46369788bbe1e /net-news/liferea/files
parentFixed slot deps (diff)
downloadgentoo-2-9d776d4e9fab4ef982721b80c697fc9015c4fe77.tar.gz
gentoo-2-9d776d4e9fab4ef982721b80c697fc9015c4fe77.tar.bz2
gentoo-2-9d776d4e9fab4ef982721b80c697fc9015c4fe77.zip
Backport x11-libs/libnotify >= 0.7 patch to current stable.
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
Diffstat (limited to 'net-news/liferea/files')
-rw-r--r--net-news/liferea/files/liferea-1.6.5-libnotify-0.7.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/net-news/liferea/files/liferea-1.6.5-libnotify-0.7.patch b/net-news/liferea/files/liferea-1.6.5-libnotify-0.7.patch
new file mode 100644
index 000000000000..ba9c0c10a3d0
--- /dev/null
+++ b/net-news/liferea/files/liferea-1.6.5-libnotify-0.7.patch
@@ -0,0 +1,41 @@
+--- src/notification/libnotify.c
++++ src/notification/libnotify.c
+@@ -28,6 +28,10 @@
+
+ #include <libnotify/notify.h>
+
++#ifndef NOTIFY_CHECK_VERSION
++#define NOTIFY_CHECK_VERSION(x,y,z) 0
++#endif
++
+ #include "common.h"
+ #include "conf.h"
+ #include "debug.h"
+@@ -150,7 +154,12 @@
+ // notify_notification_update ( n, node_get_title(node_p), labelText_now_p, NULL);
+ // notify_notification_clear_actions(n);
+
+- n = notify_notification_new (node_get_title(node_p), labelText_now_p, NULL, NULL);
++ n = notify_notification_new (node_get_title(node_p), labelText_now_p, NULL
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ );
++#else
++ , NULL);
++#endif
+
+ notify_notification_set_icon_from_pixbuf (n,node_get_icon(node_p));
+
+@@ -244,7 +253,12 @@
+
+ labelSummary_p = g_strdup_printf (ngettext ("%s has %d new / updated headline\n", "%s has %d new / updated headlines\n", item_count),
+ node_get_title (node), item_count);
+- n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL, NULL);
++ n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ );
++#else
++ , NULL);
++#endif
+ g_free(labelSummary_p);
+
+ notify_notification_set_icon_from_pixbuf (n, node_get_icon (node));