Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/parole/files: parole-0.2.0.2-libnotify-0.7.patch
Date: Sat, 05 Feb 2011 11:27:18
Message-Id: 20110205112708.EE9DB20054@flycatcher.gentoo.org
1 ssuominen 11/02/05 11:27:08
2
3 Added: parole-0.2.0.2-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 media-video/parole/files/parole-0.2.0.2-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/parole/files/parole-0.2.0.2-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/parole/files/parole-0.2.0.2-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: parole-0.2.0.2-libnotify-0.7.patch
16 ===================================================================
17 --- plugins/tray/tray-provider.c
18 +++ plugins/tray/tray-provider.c
19 @@ -29,6 +29,9 @@
20
21 #ifdef HAVE_LIBNOTIFY
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 #include <libxfcegui4/libxfcegui4.h>
29 @@ -260,8 +263,11 @@
30 }
31
32 message = g_strdup_printf ("%s %s %s %s", _("<b>Playing:</b>"), title, _("<b>Duration:</b>"), timestring);
33 -
34 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
35 + tray->n = notify_notification_new (title, message, NULL);
36 +#else
37 tray->n = notify_notification_new (title, message, NULL, NULL);
38 +#endif
39 g_free (title);
40 g_free (message);