Lines 160-166
tr_notify_added( const char * name )
Link Here
|
160 |
if( pref_flag_get( PREF_KEY_SHOW_DESKTOP_NOTIFICATION ) ) |
160 |
if( pref_flag_get( PREF_KEY_SHOW_DESKTOP_NOTIFICATION ) ) |
161 |
{ |
161 |
{ |
162 |
NotifyNotification * n = notify_notification_new( |
162 |
NotifyNotification * n = notify_notification_new( |
163 |
_( "Torrent Added" ), name, NULL, NULL ); |
163 |
_( "Torrent Added" ), name, NULL |
|
|
164 |
/* the fourth argument was removed in libnotify 0.7.0 */ |
165 |
#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) |
166 |
, NULL |
167 |
#endif |
168 |
); |
164 |
addIcon( n ); |
169 |
addIcon( n ); |
165 |
notify_notification_set_timeout( n, NOTIFY_EXPIRES_DEFAULT ); |
170 |
notify_notification_set_timeout( n, NOTIFY_EXPIRES_DEFAULT ); |
166 |
notify_notification_show( n, NULL ); |
171 |
notify_notification_show( n, NULL ); |