mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
(trunk gtk) #3719 "handle API changes to libnotify" -- fixed with patch from _v_l
This commit is contained in:
parent
78f2bff2a2
commit
fb106b541c
1 changed files with 6 additions and 1 deletions
|
@ -160,7 +160,12 @@ tr_notify_added( const char * name )
|
|||
if( pref_flag_get( PREF_KEY_SHOW_DESKTOP_NOTIFICATION ) )
|
||||
{
|
||||
NotifyNotification * n = notify_notification_new(
|
||||
_( "Torrent Added" ), name, NULL, NULL );
|
||||
_( "Torrent Added" ), 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 );
|
||||
notify_notification_set_timeout( n, NOTIFY_EXPIRES_DEFAULT );
|
||||
notify_notification_show( n, NULL );
|
||||
|
|
Loading…
Reference in a new issue