changeset 682:9b189d028b34

[gaim-migrate @ 692] this should stop flashing committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 15 Aug 2000 05:07:36 +0000
parents 5422dbecd861
children 2186b43872b7
files src/prefs.c
diffstat 1 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/prefs.c	Tue Aug 15 03:02:39 2000 +0000
+++ b/src/prefs.c	Tue Aug 15 05:07:36 2000 +0000
@@ -160,7 +160,7 @@
 	else
 		opt = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(set)), label);
 	gtk_box_pack_start(GTK_BOX(box), opt, FALSE, FALSE, 0);
-	gtk_signal_connect(GTK_OBJECT(opt), "clicked", GTK_SIGNAL_FUNC(set_connect), (void *)which);
+	gtk_signal_connect(GTK_OBJECT(opt), "selected", GTK_SIGNAL_FUNC(set_connect), (void *)which);
 	gtk_widget_show(opt);
 	if (proxy_type == which)
 		gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(opt), TRUE);
@@ -440,13 +440,15 @@
 
 static void set_permit(GtkWidget *w, int *data)
 {
-	permdeny = (int)data;
-        if (blist) {
-		/* We don't save this 'at home', it's on the server.
-		 * So, we gotta resend the config to the server. */
-		serv_save_config();
-		/* we do this here because we can :) */
-		serv_set_permit_deny();
+	if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) {
+		permdeny = (int)data;
+	        if (blist) {
+			/* We don't save this 'at home', it's on the server.
+			 * So, we gotta resend the config to the server. */
+			serv_save_config();
+			/* we do this here because we can :) */
+			serv_set_permit_deny();
+		}
 	}
 }