Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/pidgin-libnotify/files: pidgin-libnotify-0.14-libnotify-0.7.patch
Date: Sun, 30 Jan 2011 09:04:27
Message-Id: 20110130090413.968A520057@flycatcher.gentoo.org
1 ssuominen 11/01/30 09:04:13
2
3 Added: pidgin-libnotify-0.14-libnotify-0.7.patch
4 Log:
5 Fix building with x11-libs/libnotify >= 0.7.
6
7 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: pidgin-libnotify-0.14-libnotify-0.7.patch
16 ===================================================================
17 --- src/pidgin-libnotify.c
18 +++ src/pidgin-libnotify.c
19 @@ -286,7 +286,15 @@
20 g_free (tr_body);
21 return;
22 }
23 +#ifdef NOTIFY_CHECK_VERSION
24 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
25 + notification = notify_notification_new (title, tr_body, NULL);
26 +#else
27 notification = notify_notification_new (title, tr_body, NULL, NULL);
28 +#endif
29 +#else
30 + notification = notify_notification_new (title, tr_body, NULL, NULL);
31 +#endif
32 purple_debug_info (PLUGIN_ID, "notify(), new: "
33 "title: '%s', body: '%s', buddy: '%s'\n",
34 title, tr_body, best_name (buddy));