Annotation of /trunk/notification-daemon/patches/notification-daemon-0.5.0-libnotify07.patch
Parent Directory | Revision Log
Revision 1415 -
(hide annotations)
(download)
Thu Jul 14 13:57:33 2011 UTC (13 years, 2 months ago) by niro
File size: 948 byte(s)
Thu Jul 14 13:57:33 2011 UTC (13 years, 2 months ago) by niro
File size: 948 byte(s)
added fix against libnotify-0.7
1 | niro | 1415 | --- src/capplet/notification-properties.c |
2 | +++ src/capplet/notification-properties.c | ||
3 | @@ -27,6 +27,10 @@ | ||
4 | #include <string.h> | ||
5 | #include <libnotify/notify.h> | ||
6 | |||
7 | +#ifndef NOTIFY_CHECK_VERSION | ||
8 | +#define NOTIFY_CHECK_VERSION(x,y,z) 0 | ||
9 | +#endif | ||
10 | + | ||
11 | #include "stack.h" | ||
12 | |||
13 | #define GCONF_KEY_DAEMON "/apps/notification-daemon" | ||
14 | @@ -402,8 +406,12 @@ | ||
15 | |||
16 | dialog->preview = notify_notification_new (_("Notification Test"), | ||
17 | _("Just a test"), | ||
18 | - "gnome-util", | ||
19 | - NULL); | ||
20 | + "gnome-util" | ||
21 | +#if NOTIFY_CHECK_VERSION (0, 7, 0) | ||
22 | + ); | ||
23 | +#else | ||
24 | + , NULL); | ||
25 | +#endif | ||
26 | |||
27 | if (!notify_notification_show (dialog->preview, &error)) { | ||
28 | char *message; |