mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 23:14:31 +00:00
Fix compilation with libnotify 0.7.0
This commit is contained in:
parent
75ff9984fa
commit
8276c301c2
@ -1043,7 +1043,12 @@ void GUI::showNotificationBaloon(QString title, QString msg) const {
|
|||||||
#ifdef WITH_LIBNOTIFY
|
#ifdef WITH_LIBNOTIFY
|
||||||
if (notify_init ("summary-body")) {
|
if (notify_init ("summary-body")) {
|
||||||
NotifyNotification* notification;
|
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);
|
gboolean success = notify_notification_show (notification, NULL);
|
||||||
g_object_unref(G_OBJECT(notification));
|
g_object_unref(G_OBJECT(notification));
|
||||||
notify_uninit ();
|
notify_uninit ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user