(gtk) finish adding SOCKS options in the preferences dialog

This commit is contained in:
Charles Kerr 2008-06-11 23:34:01 +00:00
parent 88a640ecfe
commit 9c649d7752
2 changed files with 2 additions and 3 deletions

View File

@ -982,8 +982,7 @@ prefschanged( TrCore * core UNUSED, const char * key, gpointer data )
}
else if( !strcmp( key, PREF_KEY_PROXY_TYPE ) )
{
int i = pref_int_get( key );
g_message( "new type is %d", i );
const int i = pref_int_get( key );
tr_sessionSetProxyType( tr, i );
}
else if( !strcmp( key, PREF_KEY_PROXY_SERVER_ENABLED ) )

View File

@ -1012,7 +1012,7 @@ networkPage( GObject * core )
gtk_cell_layout_pack_start( GTK_CELL_LAYOUT( w ), r, TRUE );
gtk_cell_layout_set_attributes( GTK_CELL_LAYOUT( w ), r, "text", 0, NULL );
gtk_combo_box_set_active( GTK_COMBO_BOX( w ), pref_int_get( PREF_KEY_PROXY_TYPE ) );
g_signal_connect( w, "changed", G_CALLBACK(onProxyTypeChanged), NULL );
g_signal_connect( w, "changed", G_CALLBACK(onProxyTypeChanged), page );
g_object_unref( G_OBJECT( m ) );
page->proxy_widgets = g_slist_append( page->proxy_widgets, w );
w = hig_workarea_add_row( t, &row, s, w, NULL );