Revision: 7023
Author: nogu.dev
Date: Sat May 7 22:54:47 2011
Log: * notify/uim-libnotify.c
- (uim_libnotify_notify): Add support for libnotify >= 0.7.
http://code.google.com/p/uim/source/detail?r=7023
Modified:
/trunk/notify/uim-libnotify.c
=======================================
--- /trunk/notify/uim-libnotify.c Thu Jan 6 18:09:56 2011
+++ /trunk/notify/uim-libnotify.c Sat May 7 22:54:47 2011
@@ -73,7 +73,13 @@
return UIM_FALSE;
}
+#ifdef NOTIFY_CHECK_VERSION
+ // libnotify 0.7.0 contains this API change
+ // and introduced the macro NOTIFY_CHECK_VERSION.
+ notification = notify_notification_new("uim", gmsg, UIM_ICON);
+#else
notification = notify_notification_new("uim", gmsg, UIM_ICON, NULL);
+#endif
if (!notification) {
fprintf(stderr, "notify_notification_new: can not create notification
object\n");