e94b597
diff -ur ../transmission-2.11.orig/gtk/notify.c ./gtk/notify.c
e94b597
--- ../transmission-2.11.orig/gtk/notify.c	2010-10-17 05:44:40.000000000 +0530
f858a19
+++ ./gtk/notify.c	2010-11-07 12:36:51.666315486 +0530
e94b597
@@ -129,8 +129,12 @@
e94b597
         NotifyNotification * n;
e94b597
 
e94b597
         n = notify_notification_new( _( "Torrent Complete" ),
e94b597
-                                     info->name,
e94b597
-                                     NULL, NULL );
e94b597
+                                     info->name, NULL
e94b597
+/* the fourth argument was removed in libnotify 0.7.0 */
e94b597
+#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7)
e94b597
+                                                     , NULL
e94b597
+#endif
e94b597
+                                                            );
e94b597
         addIcon( n );
e94b597
 
e94b597
         if( can_support_actions( ) )
f858a19
@@ -156,7 +160,13 @@
f858a19
     if( pref_flag_get( PREF_KEY_SHOW_DESKTOP_NOTIFICATION ) )
f858a19
     {
f858a19
         NotifyNotification * n = notify_notification_new(
f858a19
-            _( "Torrent Added" ), name, NULL, NULL );
f858a19
+            _( "Torrent Added" ), name, NULL
f858a19
+/* the fourth argument was removed in libnotify 0.7.0 */
f858a19
+#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7)
f858a19
+                                                     , NULL
f858a19
+#endif
f858a19
+                );
f858a19
+
f858a19
         addIcon( n );
f858a19
         notify_notification_set_timeout( n, NOTIFY_EXPIRES_DEFAULT );
f858a19
         notify_notification_show( n, NULL );