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
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 @@
16
+tr_core_pref_changed( TrCore * core, const char * key )
18
+ g_signal_emit( core, core_signals[PREFS_SIGNAL], 0, key );
22
commitPrefsChange( TrCore * core, const char * key )
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 ) );
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
35
int tr_core_get_torrent_count( TrCore * self );
37
+void tr_core_pref_changed( TrCore * core, const char * key );
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
47
tr_sessionGetSettings( session, oldvals );
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 );
53
g_slist_free( changed_keys );