Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/orage/files: orage-4.8.0-libnotify-0.7.patch
Date: Sat, 29 Jan 2011 14:03:16
Message-Id: 20110129140220.EBBD320057@flycatcher.gentoo.org
1 ssuominen 11/01/29 14:02:20
2
3 Added: orage-4.8.0-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 app-office/orage/files/orage-4.8.0-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/orage/files/orage-4.8.0-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/orage/files/orage-4.8.0-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: orage-4.8.0-libnotify-0.7.patch
16 ===================================================================
17 http://bugzilla.xfce.org/show_bug.cgi?id=7204
18
19 --- src/reminder.c
20 +++ src/reminder.c
21 @@ -557,12 +557,19 @@
22 g_strlcat(heading, l_alarm->action_time, 90);
23 g_strlcat(heading, "<\b>", 10);
24 }
25 - n = notify_notification_new(heading, l_alarm->description, NULL, NULL);
26 + n = notify_notification_new(heading, l_alarm->description, NULL
27 +#ifdef HAVE_LIBNOTIFY_07
28 + );
29 +#else
30 + , NULL);
31 +#endif
32 l_alarm->active_alarm->active_notify = n;
33 +#ifndef HAVE_LIBNOTIFY_07
34 if (g_par.trayIcon
35 && gtk_status_icon_is_embedded((GtkStatusIcon *)g_par.trayIcon))
36 notify_notification_attach_to_status_icon(n
37 , (GtkStatusIcon *)g_par.trayIcon);
38 +#endif
39
40 if (l_alarm->notify_timeout == -1)
41 notify_notification_set_timeout(n, NOTIFY_EXPIRES_NEVER);