~ubuntu-branches/ubuntu/raring/transmission/raring

« back to all changes in this revision

Viewing changes to debian/patches/0108-sync_web_interface_turtle_mode_with_gui.patch

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2011-03-22 18:59:19 UTC
  • Revision ID: james.westby@ubuntu.com-20110322185919-ceizoba779xccx1r
Tags: 2.13-0ubuntu7
* debian/patches/0108-sync_web_interface_turtle_mode_with_gui.patch
  - Keep GUI and web interface in sync when toggling speed limit mode.
    (LP: #727629)
* debian/patches/0109-fix_crash_on_missing_script.patch (LP: #710003)
  - Fix crash when the configured script is not found.
* debian/patches/0110-dont_truncate_string.patch:
  - Don't truncace string when transmission-edit -r option is used. 
* debian/patches/0111-call_guessPacketOverhead_for_reads.patch
  - Fix peer-io code so packet overhead is calculated for socket reads.
* 0112-fix_check_for_result_of_tr_torrentGetMetadataPercent.patch:
  - tr_torrentGetMetadataPercent() may return NULL; fix the check in
    torrent-magnet.c to handle it.
* debian/patches/0113-fix_support_for_ipv6_trackers.patch:
  - Fix support for IPv6-only trackers.
* debian/patches/0114-dont_move_file_if_src_and_dest_are_the_same.patch:
  - Don't move files and directories if the destination path is the same
    as origin.
* debian/patches/0115-fix_tall_argument.patch:
  - Fix the "-tall" argument in transmission-remote.
* debian/patches/0116-fix_segfault_in_gtk_client.patch:
  - Fix crash in the Gtk+ client when adding many torrents remotely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: make sure that both GUI and web interface stay in sync
 
2
 when speed limit mode is toggled.
 
3
Origin: upstream, https://trac.transmissionbt.com/changeset/12089
 
4
Bug-Ubuntu: http://launchpad.net/bugs/727629
 
5
Bug: https://trac.transmissionbt.com/ticket/4080
 
6
 
 
7
Index: natty/gtk/tr-core.c
 
8
===================================================================
 
9
--- natty.orig/gtk/tr-core.c    2011-03-06 23:27:13.000000000 +0100
 
10
+++ natty/gtk/tr-core.c 2011-03-22 17:56:53.013494825 +0100
 
11
@@ -1513,10 +1513,16 @@
 
12
 ***  Prefs
 
13
 **/
 
14
 
 
15
+void
 
16
+tr_core_pref_changed( TrCore * core, const char * key )
 
17
+{
 
18
+    g_signal_emit( core, core_signals[PREFS_SIGNAL], 0, key );
 
19
+}
 
20
+
 
21
 static void
 
22
 commitPrefsChange( TrCore * core, const char * key )
 
23
 {
 
24
-    g_signal_emit( core, core_signals[PREFS_SIGNAL], 0, key );
 
25
+    tr_core_pref_changed( core, key );
 
26
     pref_save( tr_core_session( core ) );
 
27
 }
 
28
 
 
29
Index: natty/gtk/tr-core.h
 
30
===================================================================
 
31
--- natty.orig/gtk/tr-core.h    2011-03-06 23:27:13.000000000 +0100
 
32
+++ natty/gtk/tr-core.h 2011-03-22 17:56:53.013494825 +0100
 
33
@@ -87,6 +87,8 @@
 
34
 
 
35
 int            tr_core_get_torrent_count( TrCore * self );
 
36
 
 
37
+void           tr_core_pref_changed( TrCore * core, const char * key );
 
38
+
 
39
 /******
 
40
 *******
 
41
 ******/
 
42
Index: natty/gtk/main.c
 
43
===================================================================
 
44
--- natty.orig/gtk/main.c       2011-03-22 17:53:43.612555630 +0100
 
45
+++ natty/gtk/main.c    2011-03-22 17:56:53.013494825 +0100
 
46
@@ -480,7 +480,7 @@
 
47
             tr_sessionGetSettings( session, oldvals );
 
48
 
 
49
             for( l=changed_keys; l!=NULL; l=l->next )
 
50
-                prefschanged( cbdata->core, key, cbdata );
 
51
+                tr_core_pref_changed( cbdata->core, l->data );
 
52
 
 
53
             g_slist_free( changed_keys );
 
54
             tr_bencFree( &tmp );