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-irc/conspire/files: conspire-1.0.1-libnotify-0.7.patch
Date: Sat, 05 Feb 2011 17:38:51
Message-Id: 20110205173840.2EEF720057@flycatcher.gentoo.org
1 ssuominen 11/02/05 17:38:40
2
3 Added: conspire-1.0.1-libnotify-0.7.patch
4 Log:
5 Fix building with x11-libs/libnotify >= 0.7. Enable USE="gnutls" by default until #339204 is solved.
6
7 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-irc/conspire/files/conspire-1.0.1-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/conspire/files/conspire-1.0.1-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/conspire/files/conspire-1.0.1-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: conspire-1.0.1-libnotify-0.7.patch
16 ===================================================================
17 --- src/fe-gtk/tray.c
18 +++ src/fe-gtk/tray.c
19 @@ -16,6 +16,9 @@
20 #include <gtk/gtk.h>
21 #ifndef _WIN32
22 # include <libnotify/notify.h>
23 +#ifndef NOTIFY_CHECK_VERSION
24 +#define NOTIFY_CHECK_VERSION(x,y,z) 0
25 +#endif
26 #endif
27
28 typedef enum /* current icon status */
29 @@ -134,8 +137,13 @@
30 return;
31
32 stext = strip_color(text, -1, STRIP_ALL);
33 - n = notify_notification_new(title, stext, NULL, NULL);
34 + n = notify_notification_new(title, stext, NULL
35 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
36 + );
37 +#else
38 + , NULL);
39 notify_notification_attach_to_status_icon(n, sticon);
40 +#endif
41 notify_notification_set_timeout(n, 20000);
42 notify_notification_show(n, NULL);