(trunk gtk) clean up some more preferences options
This commit is contained in:
parent
a9f8c517a0
commit
9294a6f58e
25
gtk/main.c
25
gtk/main.c
|
@ -1034,6 +1034,18 @@ prefschanged( TrCore * core UNUSED,
|
|||
g_message( "setting encryption to %d", encryption );
|
||||
tr_sessionSetEncryption( tr, encryption );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_DOWNLOAD_DIR ) )
|
||||
{
|
||||
tr_sessionSetDownloadDir( tr, pref_string_get( key ) );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_MSGLEVEL ) )
|
||||
{
|
||||
tr_setMessageLevel( pref_int_get( key ) );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_PEER_PORT_RANDOM_ENABLED ) )
|
||||
{
|
||||
/* FIXME */
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_PEER_PORT ) )
|
||||
{
|
||||
const int port = pref_int_get( key );
|
||||
|
@ -1089,10 +1101,6 @@ prefschanged( TrCore * core UNUSED,
|
|||
const gboolean b = pref_flag_get( key );
|
||||
tr_sessionSetPortForwardingEnabled( tr, b );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_RPC_ENABLED ) )
|
||||
{
|
||||
tr_sessionSetRPCEnabled( tr, pref_flag_get( key ) );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_RPC_PORT ) )
|
||||
{
|
||||
tr_sessionSetRPCPort( tr, pref_int_get( key ) );
|
||||
|
@ -1150,6 +1158,15 @@ prefschanged( TrCore * core UNUSED,
|
|||
const char * s = pref_string_get( key );
|
||||
tr_sessionSetProxyUsername( tr, s );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_PROXY_PASSWORD ) )
|
||||
{
|
||||
const char * s = pref_string_get( key );
|
||||
tr_sessionSetProxyPassword( tr, s );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_PROXY_PORT ) )
|
||||
{
|
||||
tr_sessionSetProxyPort( tr, pref_int_get( key ) );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_RPC_PASSWORD ) )
|
||||
{
|
||||
const char * s = pref_string_get( key );
|
||||
|
|
Loading…
Reference in New Issue