(trunk gtk) #4080 "Toggling speed limit mode from the web interface doesn't affect GUI" -- fixed.

This commit is contained in:
Jordan Lee 2011-03-04 05:58:32 +00:00
parent b10aea6fcc
commit 9283ef2ebb
3 changed files with 7 additions and 4 deletions

View File

@ -522,7 +522,7 @@ on_rpc_changed( tr_session * session,
tr_sessionGetSettings( session, oldvals );
for( l=changed_keys; l!=NULL; l=l->next )
on_prefs_changed( cbdata->core, key, cbdata );
gtr_core_pref_changed( cbdata->core, l->data );
g_slist_free( changed_keys );
tr_bencFree( &tmp );

View File

@ -316,8 +316,8 @@ core_emit_busy( TrCore * core, gboolean is_busy )
g_signal_emit( core, core_signals[BUSY_SIGNAL], 0, is_busy );
}
static inline void
core_emit_prefs_changed( TrCore * core, const char * key )
void
gtr_core_pref_changed( TrCore * core, const char * key )
{
g_signal_emit( core, core_signals[PREFS_SIGNAL], 0, key );
}
@ -1573,7 +1573,7 @@ core_maybe_inhibit_hibernation( TrCore * core )
static void
core_commit_prefs_change( TrCore * core, const char * key )
{
core_emit_prefs_changed( core, key );
gtr_core_pref_changed( core, key );
gtr_pref_save( gtr_core_session( core ) );
}

View File

@ -86,6 +86,9 @@ size_t gtr_core_get_torrent_count( TrCore * self );
tr_torrent * gtr_core_find_torrent( TrCore * core, int id );
void gtr_core_pref_changed( TrCore * core, const char * key );
/******
*******
******/