1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

(trunk gtk) #3710 "Handle API changes to libnotify 0.7" -- fixed. The cpp hack is borrowed from qbittorrent and torium... :)

This commit is contained in:
Charles Kerr 2010-11-06 14:37:34 +00:00
parent 38b04656dd
commit 865c0853d5

View file

@ -129,8 +129,12 @@ tr_notify_send( TrTorrent *tor )
NotifyNotification * n; NotifyNotification * n;
n = notify_notification_new( _( "Torrent Complete" ), n = notify_notification_new( _( "Torrent Complete" ),
info->name, info->name, NULL
NULL, 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 ); addIcon( n );
if( can_support_actions( ) ) if( can_support_actions( ) )