1 |
ssuominen 11/02/05 10:48:18 |
2 |
|
3 |
Added: notification-daemon-0.5.0-libnotify-0.7.patch |
4 |
Log: |
5 |
Fix compability 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-misc/notification-daemon/files/notification-daemon-0.5.0-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/notification-daemon/files/notification-daemon-0.5.0-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/notification-daemon/files/notification-daemon-0.5.0-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: notification-daemon-0.5.0-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
diff -ur notification-daemon-0.5.0.orig/src/capplet/notification-properties.c notification-daemon-0.5.0/src/capplet/notification-properties.c |
18 |
--- notification-daemon-0.5.0.orig/src/capplet/notification-properties.c 2010-05-28 17:41:17.000000000 +0300 |
19 |
+++ notification-daemon-0.5.0/src/capplet/notification-properties.c 2011-02-05 12:47:22.000000000 +0200 |
20 |
@@ -27,6 +27,10 @@ |
21 |
#include <string.h> |
22 |
#include <libnotify/notify.h> |
23 |
|
24 |
+#ifndef NOTIFY_CHECK_VERSION |
25 |
+#define NOTIFY_CHECK_VERSION(x,y,z) 0 |
26 |
+#endif |
27 |
+ |
28 |
#include "stack.h" |
29 |
|
30 |
#define GCONF_KEY_DAEMON "/apps/notification-daemon" |
31 |
@@ -402,8 +406,12 @@ |
32 |
|
33 |
dialog->preview = notify_notification_new (_("Notification Test"), |
34 |
_("Just a test"), |
35 |
- "gnome-util", |
36 |
- NULL); |
37 |
+ "gnome-util" |
38 |
+#if NOTIFY_CHECK_VERSION (0, 7, 0) |
39 |
+ ); |
40 |
+#else |
41 |
+ , NULL); |
42 |
+#endif |
43 |
|
44 |
if (!notify_notification_show (dialog->preview, &error)) { |
45 |
char *message; |