comparison src/prefs.c @ 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 71b2477033cb
children 2186b43872b7
comparison
equal deleted inserted replaced
681:5422dbecd861 682:9b189d028b34
158 if (!set) 158 if (!set)
159 opt = gtk_radio_button_new_with_label(NULL, label); 159 opt = gtk_radio_button_new_with_label(NULL, label);
160 else 160 else
161 opt = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(set)), label); 161 opt = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(set)), label);
162 gtk_box_pack_start(GTK_BOX(box), opt, FALSE, FALSE, 0); 162 gtk_box_pack_start(GTK_BOX(box), opt, FALSE, FALSE, 0);
163 gtk_signal_connect(GTK_OBJECT(opt), "clicked", GTK_SIGNAL_FUNC(set_connect), (void *)which); 163 gtk_signal_connect(GTK_OBJECT(opt), "selected", GTK_SIGNAL_FUNC(set_connect), (void *)which);
164 gtk_widget_show(opt); 164 gtk_widget_show(opt);
165 if (proxy_type == which) 165 if (proxy_type == which)
166 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(opt), TRUE); 166 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(opt), TRUE);
167 167
168 return opt; 168 return opt;
438 } 438 }
439 439
440 440
441 static void set_permit(GtkWidget *w, int *data) 441 static void set_permit(GtkWidget *w, int *data)
442 { 442 {
443 permdeny = (int)data; 443 if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) {
444 if (blist) { 444 permdeny = (int)data;
445 /* We don't save this 'at home', it's on the server. 445 if (blist) {
446 * So, we gotta resend the config to the server. */ 446 /* We don't save this 'at home', it's on the server.
447 serv_save_config(); 447 * So, we gotta resend the config to the server. */
448 /* we do this here because we can :) */ 448 serv_save_config();
449 serv_set_permit_deny(); 449 /* we do this here because we can :) */
450 serv_set_permit_deny();
451 }
450 } 452 }
451 } 453 }
452 454
453 static GtkWidget *deny_radio(char *label, int which, GtkWidget *box, GtkWidget *set) 455 static GtkWidget *deny_radio(char *label, int which, GtkWidget *box, GtkWidget *set)
454 { 456 {