updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / gwget / libnotify-0.7.patch
blob599744194619f6da02128903c10a4dc94a8854af
1 --- src/systray.c
2 +++ src/systray.c
3 @@ -6,6 +6,12 @@
4 #include "systray.h"
5 #include "main_window_cb.h"
7 +#ifdef HAVE_NOTIFY
8 +#ifndef NOTIFY_CHECK_VERSION
9 +#define NOTIFY_CHECK_VERSION(x,y,z) 0
10 +#endif
11 +#endif
13 static GdkPixbuf *systray_load_icon (const gchar *filename);
14 static GdkPixbuf *systray_pixbuf_new_from_file(const gchar *filename);
15 static void systray_clicked(GtkStatusIcon *status_icon,guint button,guint activate_time,gpointer user_data);
16 @@ -224,7 +230,12 @@
17 if (!notify_is_initted ())
18 if (!notify_init ("gwget"))
19 return;
20 - NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name,NULL);
21 + NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name
22 +#if NOTIFY_CHECK_VERSION (0, 7, 3)
23 + );
24 +#else
25 + ,NULL);
26 +#endif
27 notify_notification_show(notification,NULL);
28 #endif