Commit 638f95c3 authored by Samuli Suominen's avatar Samuli Suominen Committed by Jean-Baptiste Kempf

Fix notify plugin build with libnotify 0.7.

Patch by Samuli Suominen.
See: https://bugs.gentoo.org/show_bug.cgi?id=353848Sent-by: default avatarAlexis Ballier <aballier@gentoo.org>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bfa0a5e1
......@@ -38,6 +38,10 @@
#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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment