From 8276c301c2631b4420d2d872242e7bd7bce8f5cc Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 6 Nov 2010 09:24:09 +0000 Subject: [PATCH] Fix compilation with libnotify 0.7.0 --- src/GUI.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 657daeae3..7173d4bc5 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1043,7 +1043,12 @@ void GUI::showNotificationBaloon(QString title, QString msg) const { #ifdef WITH_LIBNOTIFY if (notify_init ("summary-body")) { NotifyNotification* notification; - notification = notify_notification_new (qPrintable(title), qPrintable(msg), "qbittorrent", 0); + + notification = notify_notification_new (qPrintable(title), qPrintable(msg), "qbittorrent" +#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) + , 0 +#endif + ); gboolean success = notify_notification_show (notification, NULL); g_object_unref(G_OBJECT(notification)); notify_uninit ();