diff options
author | 2011-02-05 11:27:08 +0000 | |
---|---|---|
committer | 2011-02-05 11:27:08 +0000 | |
commit | 3d6a7921038863ed13f8ef3a77f24473d23281e1 (patch) | |
tree | 3e644e7be716240f65906ddf73d5627d74d468e2 /media-video/parole/files | |
parent | stable amd64, bug 353642 (diff) | |
download | gentoo-2-3d6a7921038863ed13f8ef3a77f24473d23281e1.tar.gz gentoo-2-3d6a7921038863ed13f8ef3a77f24473d23281e1.tar.bz2 gentoo-2-3d6a7921038863ed13f8ef3a77f24473d23281e1.zip |
Fix building with x11-libs/libnotify >= 0.7.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'media-video/parole/files')
-rw-r--r-- | media-video/parole/files/parole-0.2.0.2-libnotify-0.7.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media-video/parole/files/parole-0.2.0.2-libnotify-0.7.patch b/media-video/parole/files/parole-0.2.0.2-libnotify-0.7.patch new file mode 100644 index 000000000000..a6fbecafb066 --- /dev/null +++ b/media-video/parole/files/parole-0.2.0.2-libnotify-0.7.patch @@ -0,0 +1,25 @@ +--- plugins/tray/tray-provider.c ++++ plugins/tray/tray-provider.c +@@ -29,6 +29,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + #include <libxfcegui4/libxfcegui4.h> +@@ -260,8 +263,11 @@ + } + + message = g_strdup_printf ("%s %s %s %s", _("<b>Playing:</b>"), title, _("<b>Duration:</b>"), timestring); +- ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ tray->n = notify_notification_new (title, message, NULL); ++#else + tray->n = notify_notification_new (title, message, NULL, NULL); ++#endif + g_free (title); + g_free (message); + |