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/wmudmount/files: wmudmount-1.8-libnotify-0.7.patch
Date: Sat, 29 Jan 2011 14:18:15
Message-Id: 20110129141733.BE7E920057@flycatcher.gentoo.org
1 ssuominen 11/01/29 14:17:33
2
3 Added: wmudmount-1.8-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/wmudmount/files/wmudmount-1.8-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmudmount/files/wmudmount-1.8-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmudmount/files/wmudmount-1.8-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: wmudmount-1.8-libnotify-0.7.patch
16 ===================================================================
17 --- notify.c
18 +++ notify.c
19 @@ -58,7 +58,12 @@
20 } else if(G_IS_FILE_ICON(icon)){
21 icon_name = g_icon_to_string(icon);
22 }
23 - NotifyNotification *n = notify_notification_new(summary, body, icon_name, NULL);
24 + NotifyNotification *n = notify_notification_new(summary, body, icon_name
25 +#ifdef HAVE_LIBNOTIFY_07
26 + );
27 +#else
28 + , NULL);
29 +#endif
30 GError *err = NULL;
31 if(!notify_notification_show(n, &err)){
32 warn(DEBUG_ERROR, "Failed to show notification \"%s\" \"%s\": %s", summary, body, err?err->message:"<unknown error>");