changeset 2839:c936163f916a

[gaim-migrate @ 2852] i'm on a mexican, woh-oh, radio committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 03 Dec 2001 12:22:46 +0000
parents 273e7c131a76
children babeeac8cf9e
files src/prefs.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/prefs.c	Mon Dec 03 06:25:51 2001 +0000
+++ b/src/prefs.c	Mon Dec 03 12:22:46 2001 +0000
@@ -340,9 +340,9 @@
 static void proxy_print_optionrad(GtkRadioButton * entry, int entrynum)
 {
 	if (entrynum == PROXY_NONE)
-		gtk_widget_set_sensitive(GTK_WIDGET(prefs_proxy_frame), FALSE);
+		gtk_widget_set_sensitive(prefs_proxy_frame, FALSE);
 	else
-		gtk_widget_set_sensitive(GTK_WIDGET(prefs_proxy_frame), TRUE);
+		gtk_widget_set_sensitive(prefs_proxy_frame, TRUE);
 
 	proxytype = entrynum;
 	save_prefs();
@@ -391,6 +391,9 @@
 	gtk_widget_show(table);
 	gtk_container_add(GTK_CONTAINER(frame), table);
 
+	frame = gtk_frame_new(_("Proxy Server"));
+	prefs_proxy_frame = frame;
+
 	first = gtk_radio_button_new_with_label(NULL, _("No Proxy"));
 	gtk_table_attach(GTK_TABLE(table), first, 0, 1, 0, 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
 
@@ -431,13 +434,10 @@
 		gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(opt), TRUE);
 
 
-	frame = gtk_frame_new(_("Proxy Server"));
 	gtk_container_set_border_width(GTK_CONTAINER(frame), 5);
 	gtk_widget_show(frame);
 	gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 5);
 
-	prefs_proxy_frame = frame;
-
 	if (proxytype == PROXY_NONE)
 		gtk_widget_set_sensitive(GTK_WIDGET(frame), FALSE);