Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-news/liferea/files: liferea-1.6.5-libnotify-0.7.patch
Date: Tue, 29 Mar 2011 10:41:57
Message-Id: 20110329104141.020A220057@flycatcher.gentoo.org
1 ssuominen 11/03/29 10:41:40
2
3 Added: liferea-1.6.5-libnotify-0.7.patch
4 Log:
5 Backport x11-libs/libnotify >= 0.7 patch to current stable.
6
7 (Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-news/liferea/files/liferea-1.6.5-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-news/liferea/files/liferea-1.6.5-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-news/liferea/files/liferea-1.6.5-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: liferea-1.6.5-libnotify-0.7.patch
16 ===================================================================
17 --- src/notification/libnotify.c
18 +++ src/notification/libnotify.c
19 @@ -28,6 +28,10 @@
20
21 #include <libnotify/notify.h>
22
23 +#ifndef NOTIFY_CHECK_VERSION
24 +#define NOTIFY_CHECK_VERSION(x,y,z) 0
25 +#endif
26 +
27 #include "common.h"
28 #include "conf.h"
29 #include "debug.h"
30 @@ -150,7 +154,12 @@
31 // notify_notification_update ( n, node_get_title(node_p), labelText_now_p, NULL);
32 // notify_notification_clear_actions(n);
33
34 - n = notify_notification_new (node_get_title(node_p), labelText_now_p, NULL, NULL);
35 + n = notify_notification_new (node_get_title(node_p), labelText_now_p, NULL
36 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
37 + );
38 +#else
39 + , NULL);
40 +#endif
41
42 notify_notification_set_icon_from_pixbuf (n,node_get_icon(node_p));
43
44 @@ -244,7 +253,12 @@
45
46 labelSummary_p = g_strdup_printf (ngettext ("%s has %d new / updated headline\n", "%s has %d new / updated headlines\n", item_count),
47 node_get_title (node), item_count);
48 - n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL, NULL);
49 + n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL
50 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
51 + );
52 +#else
53 + , NULL);
54 +#endif
55 g_free(labelSummary_p);
56
57 notify_notification_set_icon_from_pixbuf (n, node_get_icon (node));