comparison src/dialogs.c @ 3786:4c9356a5231c

[gaim-migrate @ 3926] privacy options were broken as per last todo commit. deryni tracked it down to the fact that adding the new option changed the number of ->next refererences some options need, causing things to be set oddly. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 22 Oct 2002 13:41:40 +0000
parents c2394f352015
children 12b29552f1d7
comparison
equal deleted inserted replaced
3785:5258cbf177d6 3786:4c9356a5231c
1163 static void set_deny_type() 1163 static void set_deny_type()
1164 { 1164 {
1165 GSList *bg = gtk_radio_button_group(GTK_RADIO_BUTTON(deny_type)); 1165 GSList *bg = gtk_radio_button_group(GTK_RADIO_BUTTON(deny_type));
1166 1166
1167 switch (current_deny_gc->permdeny) { 1167 switch (current_deny_gc->permdeny) {
1168 case 5:
1169 bg = bg->next->next;
1170 break;
1168 case 4: 1171 case 4:
1169 break; 1172 break;
1170 case 3: 1173 case 3:
1171 bg = bg->next->next; 1174 bg = bg->next->next->next;
1172 break; 1175 break;
1173 case 2: 1176 case 2:
1174 bg = bg->next; 1177 bg = bg->next;
1175 break; 1178 break;
1176 case 1: 1179 case 1:
1177 bg = bg->next->next->next; 1180 bg = bg->next->next->next->next;
1178 break; 1181 break;
1179 } 1182 }
1180 1183
1181 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(bg->data), TRUE); 1184 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(bg->data), TRUE);
1182 } 1185 }