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-misc/gwget/files: gwget-1.0.4-libnotify-0.7.patch
Date: Sat, 05 Feb 2011 16:41:21
Message-Id: 20110205164111.65CA220057@flycatcher.gentoo.org
1 ssuominen 11/02/05 16:41:11
2
3 Added: gwget-1.0.4-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 net-misc/gwget/files/gwget-1.0.4-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gwget/files/gwget-1.0.4-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gwget/files/gwget-1.0.4-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: gwget-1.0.4-libnotify-0.7.patch
16 ===================================================================
17 --- src/systray.c
18 +++ src/systray.c
19 @@ -6,6 +6,12 @@
20 #include "systray.h"
21 #include "main_window_cb.h"
22
23 +#ifdef HAVE_NOTIFY
24 +#ifndef NOTIFY_CHECK_VERSION
25 +#define NOTIFY_CHECK_VERSION(x,y,z) 0
26 +#endif
27 +#endif
28 +
29 static GdkPixbuf *systray_load_icon (const gchar *filename);
30 static GdkPixbuf *systray_pixbuf_new_from_file(const gchar *filename);
31 static void systray_clicked(GtkStatusIcon *status_icon,guint button,guint activate_time,gpointer user_data);
32 @@ -224,7 +230,12 @@
33 if (!notify_is_initted ())
34 if (!notify_init ("gwget"))
35 return;
36 - NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name,NULL);
37 + NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name
38 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
39 + );
40 +#else
41 + ,NULL);
42 +#endif
43 notify_notification_show(notification,NULL);
44 #endif