From 9e686c0e01520c238b53b5620f936cebc7d5ba88 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 29 Jun 2012 00:47:14 +0100 Subject: [PATCH] Backward compatibility for libnotify pre 0.7.0 --- common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.h b/common.h index 21f55bd0..043e2925 100644 --- a/common.h +++ b/common.h @@ -45,6 +45,10 @@ typedef enum { #define g_slist_free_full(items, free_func) p_slist_free_full(items, free_func) #endif +#ifndef NOTIFY_CHECK_VERSION +#define notify_notification_new(summary, body, icon) notify_notification_new(summary, body, icon, NULL) +#endif + void p_slist_free_full(GSList *items, GDestroyNotify free_func); #endif