about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-06-29 00:47:14 +0100
committerJames Booth <boothj5@gmail.com>2012-06-29 00:47:14 +0100
commit9e686c0e01520c238b53b5620f936cebc7d5ba88 (patch)
tree6e23ee46d1811fb9df4adc59c81c99411ee2eed3
parent0d9cb61bcdd48cc241027b3844e4b3b21b26b1c5 (diff)
downloadprofani-tty-9e686c0e01520c238b53b5620f936cebc7d5ba88.tar.gz
Backward compatibility for libnotify pre 0.7.0
-rw-r--r--common.h4
1 files changed, 4 insertions, 0 deletions
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