File gnome-docker-libnotify0.7.patch of Package gnome-docker
Index: gnome-docker-0.1/src/gd-notify.c
===================================================================
--- gnome-docker-0.1.orig/src/gd-notify.c
+++ gnome-docker-0.1/src/gd-notify.c
@@ -11,7 +11,12 @@
# include "config.h"
#endif /* HAVE_CONFIG_H */
+#include <gtk/gtk.h>
#include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
#include "gd-notify.h"
@@ -29,7 +34,12 @@ static void gd_notify(const char *summar
notify_init("gnome-docker");
notify_icon = GTK_STOCK_NETWORK;
- notify = notify_notification_new (summary, body, notify_icon, NULL);
+ notify = notify_notification_new (summary, body, notify_icon
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ );
+#else
+ , NULL);
+#endif
notify_notification_set_urgency(notify, urgency);
notify_notification_show(notify, NULL);
}