1 |
ssuominen 11/01/29 14:35:36 |
2 |
|
3 |
Added: xfce4-power-manager-1.0.3-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 xfce-extra/xfce4-power-manager/files/xfce4-power-manager-1.0.3-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-power-manager/files/xfce4-power-manager-1.0.3-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-power-manager/files/xfce4-power-manager-1.0.3-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: xfce4-power-manager-1.0.3-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
http://bugzilla.xfce.org/show_bug.cgi?id=7205 |
18 |
|
19 |
--- src/xfpm-notify.c |
20 |
+++ src/xfpm-notify.c |
21 |
@@ -209,13 +209,20 @@ |
22 |
{ |
23 |
NotifyNotification *n; |
24 |
|
25 |
- n = notify_notification_new (title, message, NULL, NULL); |
26 |
+ n = notify_notification_new (title, message, NULL |
27 |
+#ifdef HAVE_LIBNOTIFY_07 |
28 |
+ ); |
29 |
+#else |
30 |
+ , NULL); |
31 |
+#endif |
32 |
|
33 |
if ( icon_name ) |
34 |
xfpm_notify_set_notification_icon (n, icon_name); |
35 |
- |
36 |
+ |
37 |
+#ifndef HAVE_LIBNOTIFY_07 |
38 |
if ( icon ) |
39 |
notify_notification_attach_to_status_icon (n, icon); |
40 |
+#endif |
41 |
|
42 |
notify_notification_set_urgency (n, (NotifyUrgency)urgency); |