]> git.sesse.net Git - vlc/commitdiff
Fix notify plugin build with libnotify 0.7.
authorSamuli Suominen <ssuominen@gentoo.org>
Fri, 18 Feb 2011 17:00:32 +0000 (14:00 -0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 Feb 2011 17:29:57 +0000 (18:29 +0100)
Patch by Samuli Suominen.
See: https://bugs.gentoo.org/show_bug.cgi?id=353848

Sent-by: Alexis Ballier <aballier@gentoo.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/misc/notify/notify.c

index 1e97c9e8a406040c8ae1b64e45dd2416d95833e2..b663caa330ae5d7a695294ca702d08727e19f8e2 100644 (file)
 #include <gdk-pixbuf/gdk-pixbuf.h>
 #include <libnotify/notify.h>
 
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
 /*****************************************************************************
  * Module descriptor
  ****************************************************************************/
@@ -312,7 +316,12 @@ static int Notify( vlc_object_t *p_this, const char *psz_temp, GdkPixbuf *pix,
     }
 
     notification = notify_notification_new( _("Now Playing"),
-                                            psz_temp, NULL, NULL );
+                                            psz_temp, NULL
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+                                           );
+#else
+                                           , NULL );
+#endif
     notify_notification_set_timeout( notification,
                                 var_InheritInteger(p_this, "notify-timeout") );
     notify_notification_set_urgency( notification, NOTIFY_URGENCY_LOW );