Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/epiphany/files: epiphany-2.30.6-libnotify-0.7.patch
Date: Sat, 05 Feb 2011 16:13:18
Message-Id: 20110205161306.2F4DD2005C@flycatcher.gentoo.org
1 ssuominen 11/02/05 16:13:06
2
3 Added: epiphany-2.30.6-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 www-client/epiphany/files/epiphany-2.30.6-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/epiphany/files/epiphany-2.30.6-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/epiphany/files/epiphany-2.30.6-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: epiphany-2.30.6-libnotify-0.7.patch
16 ===================================================================
17 --- embed/downloader-view.c
18 +++ embed/downloader-view.c
19 @@ -36,6 +36,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 enum
29 @@ -337,7 +340,12 @@
30 g_object_ref (dv);
31
32 notification = notify_notification_new (title, msg,
33 - GTK_STOCK_INFO, NULL);
34 + GTK_STOCK_INFO
35 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
36 + );
37 +#else
38 + , NULL);
39 +#endif
40
41 g_signal_connect_after (notification, "closed",
42 G_CALLBACK (notification_closed_cb), dv);
43 @@ -346,7 +354,11 @@
44 notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT);
45 notify_notification_set_urgency (notification, NOTIFY_URGENCY_LOW);
46
47 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
48 + /* notify_notification_attach_to_status_icon was removed */
49 +#else
50 notify_notification_attach_to_status_icon (notification, status_icon);
51 +#endif
52
53 /* There are some visual glitches when the notification is shown and
54 * the GtkStatusIcon is still not visible. To avoid that, we delay the