diff --git a/code/pidgin-libnotify/ChangeLog b/code/pidgin-libnotify/ChangeLog index 4107739..2f91913 100644 --- a/code/pidgin-libnotify/ChangeLog +++ b/code/pidgin-libnotify/ChangeLog @@ -1,3 +1,7 @@ +2011-03-15 Cedric Girard + * src/pidgin-libnotify.c: patch from + http://projects.archlinux.org/svntogit/community.git/plain/pidgin-libnotify/repos/community-x86_64/pidgin-libnotify-0.14-libnotify-0.7.patch + to add compatibility with libnotify 0.7 2011-03-15 Cedric Girard * src/pidgin-libnotify.c: patch from diff --git a/code/pidgin-libnotify/src/pidgin-libnotify.c b/code/pidgin-libnotify/src/pidgin-libnotify.c index 9c2f590..2007c26 100644 --- a/code/pidgin-libnotify/src/pidgin-libnotify.c +++ b/code/pidgin-libnotify/src/pidgin-libnotify.c @@ -329,7 +329,15 @@ notify (const GdkPixbuf *icon, } +#ifdef NOTIFY_CHECK_VERSION +#if NOTIFY_CHECK_VERSION (0, 7, 0) + notification = notify_notification_new (title, tr_body, NULL); +#else + notification = notify_notification_new (title, tr_body, NULL, NULL); +#endif +#else notification = notify_notification_new (title, tr_body, NULL, NULL); +#endif purple_debug_info (PLUGIN_ID, "notify(), new 0x%x: " "title: '%s', body: '%s', buddy: '%s'\n", notification_key, title, tr_body, buddy_name);