summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-01-30 09:04:13 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-01-30 09:04:13 +0000
commita29beea997f882b043881daa368dd7f2fc091cc0 (patch)
tree369b9d337def6ac32931a609b63a1070383bfb77 /x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch
parentx86 stable wrt bug #353039 (diff)
downloadgentoo-2-a29beea997f882b043881daa368dd7f2fc091cc0.tar.gz
gentoo-2-a29beea997f882b043881daa368dd7f2fc091cc0.tar.bz2
gentoo-2-a29beea997f882b043881daa368dd7f2fc091cc0.zip
Fix building with x11-libs/libnotify >= 0.7.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch')
-rw-r--r--x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch b/x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch
new file mode 100644
index 000000000000..40e6c02b8152
--- /dev/null
+++ b/x11-plugins/pidgin-libnotify/files/pidgin-libnotify-0.14-libnotify-0.7.patch
@@ -0,0 +1,18 @@
+--- src/pidgin-libnotify.c
++++ src/pidgin-libnotify.c
+@@ -286,7 +286,15 @@
+ g_free (tr_body);
+ return;
+ }
++#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: "
+ "title: '%s', body: '%s', buddy: '%s'\n",
+ title, tr_body, best_name (buddy));