Index: gwget-1.0.4/src/systray.c
===================================================================
--- gwget-1.0.4.orig/src/systray.c
+++ gwget-1.0.4/src/systray.c
@@ -224,7 +224,12 @@ gwget_tray_notify (gchar *primary, gchar
        		if (!notify_is_initted ())
 			if (!notify_init ("gwget"))
 		               return;
-       NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name,NULL);
+       NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+		       );
+#else
+		       , NULL);
+#endif
        notify_notification_show(notification,NULL);
 #endif
 
Index: gwget-1.0.4/src/systray.h
===================================================================
--- gwget-1.0.4.orig/src/systray.h
+++ gwget-1.0.4/src/systray.h
@@ -12,6 +12,9 @@ extern "C"
 #endif
 #ifdef HAVE_NOTIFY
 #include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
 #endif
 
 void systray_load(void);
