Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-extra/zenity/files: zenity-2.32.1-libnotify-0.7.patch
Date: Sat, 05 Feb 2011 13:49:11
Message-Id: 20110205134901.B716220057@flycatcher.gentoo.org
1 ssuominen 11/02/05 13:49:01
2
3 Added: zenity-2.32.1-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 gnome-extra/zenity/files/zenity-2.32.1-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/zenity/files/zenity-2.32.1-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/zenity/files/zenity-2.32.1-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: zenity-2.32.1-libnotify-0.7.patch
16 ===================================================================
17 --- src/notification.c
18 +++ src/notification.c
19 @@ -30,6 +30,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 "zenity.h"
29 @@ -184,10 +187,14 @@
30 icon = freeme = g_filename_to_uri (icon_file, NULL, NULL);
31 }
32
33 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
34 + /* notify_notification_new_with_status_icon was removed */
35 +#else
36 notif = notify_notification_new_with_status_icon (
37 message[0] /* title */,
38 message[1] /* summary */,
39 icon, status_icon);
40 +#endif
41
42 g_strfreev (message);
43 g_free (freeme);