|
|
|
@ -1,22 +1,7 @@
|
|
|
|
|
diff -ur ../transmission-2.11.orig/gtk/notify.c ./gtk/notify.c
|
|
|
|
|
--- ../transmission-2.11.orig/gtk/notify.c 2010-10-17 05:44:40.000000000 +0530
|
|
|
|
|
+++ ./gtk/notify.c 2010-11-07 12:36:51.666315486 +0530
|
|
|
|
|
@@ -129,8 +129,12 @@
|
|
|
|
|
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( ) )
|
|
|
|
|
@@ -156,7 +160,13 @@
|
|
|
|
|
diff -ur ../transmission-2.13.orig/gtk/notify.c ./gtk/notify.c
|
|
|
|
|
--- ../transmission-2.13.orig/gtk/notify.c 2010-12-10 01:23:21.000000000 +0530
|
|
|
|
|
+++ ./gtk/notify.c 2010-12-28 21:32:41.073397263 +0530
|
|
|
|
|
@@ -160,7 +160,12 @@
|
|
|
|
|
if( pref_flag_get( PREF_KEY_SHOW_DESKTOP_NOTIFICATION ) )
|
|
|
|
|
{
|
|
|
|
|
NotifyNotification * n = notify_notification_new(
|
|
|
|
@ -27,7 +12,6 @@ diff -ur ../transmission-2.11.orig/gtk/notify.c ./gtk/notify.c
|
|
|
|
|
+ , NULL
|
|
|
|
|
+#endif
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
addIcon( n );
|
|
|
|
|
notify_notification_set_timeout( n, NOTIFY_EXPIRES_DEFAULT );
|
|
|
|
|
notify_notification_show( n, NULL );
|
|
|
|
|