From 865c0853d5dce3de3327c10fcb634c7ea5dea163 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 6 Nov 2010 14:37:34 +0000 Subject: [PATCH] (trunk gtk) #3710 "Handle API changes to libnotify 0.7" -- fixed. The cpp hack is borrowed from qbittorrent and torium... :) --- gtk/notify.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk/notify.c b/gtk/notify.c index caaacffba..6f67b1414 100644 --- a/gtk/notify.c +++ b/gtk/notify.c @@ -129,8 +129,12 @@ tr_notify_send( TrTorrent *tor ) NotifyNotification * n; n = notify_notification_new( _( "Torrent Complete" ), - info->name, - NULL, NULL ); + info->name, NULL +/* the fourth argument was removed in libnotify 0.7.0 */ +#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) + , NULL +#endif + ); addIcon( n ); if( can_support_actions( ) ) -- 2.40.0