From 2c30d5a1ca781e1d35f61a9f3234d0f15b6b1445 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 6 Nov 2010 09:28:49 +0000 Subject: [PATCH] Fix compilation with libnotify v0.7.0 --- Changelog | 1 + src/GUI.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index ab9c7f092..ba9d67ca7 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ * Unreleased - Christophe Dumez - v2.4.10 - BUGFIX: Fix possible crash when selecting a RSS item (really closes #575624) + - BUGFIX: Fix compilation with libnotify v0.7.0 (closes #671769) * Sun Oct 31 2010 - Christophe Dumez - v2.4.9 - BUGFIX: Fix crash when pressing enter in save path field in torrent addition dialog diff --git a/src/GUI.cpp b/src/GUI.cpp index ab572d497..fb68df37b 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1035,7 +1035,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 ();