Magellan Linux

Annotation of /trunk/gnome-bluetooth/patches/gnome-bluetooth-2.32.0-libnotify-0.7.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1582 - (hide annotations) (download)
Mon Nov 28 21:28:04 2011 UTC (12 years, 5 months ago) by niro
File size: 622 byte(s)
-added file for gnome-bluetooth
1 niro 1582 --- applet/notify.c
2     +++ applet/notify.c
3     @@ -31,6 +31,10 @@
4     #include <libnotify/notify.h>
5     #include "notify.h"
6    
7     +#ifndef NOTIFY_CHECK_VERSION
8     +#define NOTIFY_CHECK_VERSION(x,y,z) 0
9     +#endif
10     +
11     static GtkStatusIcon *statusicon = NULL;
12     static char *icon_name = NULL;
13     static char *tooltip = NULL;
14     @@ -71,7 +75,12 @@
15     notify_notification_close(notify, NULL);
16     }
17    
18     - notify = notify_notification_new(summary, message, icon_name, NULL);
19     + notify = notify_notification_new(summary, message, icon_name
20     +#if NOTIFY_CHECK_VERSION (0, 7, 0)
21     + );
22     +#else
23     + , NULL);
24     +#endif
25    
26     notify_notification_set_timeout(notify, timeout);
27