changeset 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 5258cbf177d6
children aed40c72c818
files ChangeLog TODO src/dialogs.c
diffstat 3 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Oct 22 13:20:01 2002 +0000
+++ b/ChangeLog	Tue Oct 22 13:41:40 2002 +0000
@@ -96,6 +96,7 @@
 	* Fix first message in tab not displaying bug (Thanks Etan Reisner)
 	* Switch the .desktop file to the new KDE/GNOME common vfolder 
 	  format (Thanks Robert McQueen).
+	* Allow only people in buddy list privacy option added for AIM
 
 version 0.59 (06/24/2002):
 	* Hungarian translation added (Thanks, Sutto Zoltan)
--- a/TODO	Tue Oct 22 13:20:01 2002 +0000
+++ b/TODO	Tue Oct 22 13:41:40 2002 +0000
@@ -6,9 +6,6 @@
 	sounds while away?	
 
 gtk2/new prefs
-	Privacy dialog does not work right. some accounts it refuses to change the privacy option for (aim account, can't
-		change it off allow only below).  for some accounts, it isn't even reset to an understandable value, the 
-		value it won't let you change it off of isn't even the value in the .blist file.
 	most toolbar buttons stay depressed after being clicked once, only raise when clicked a second time.
 		smiles and links do not.
 	replace legend in info dialog with link to status icons page
--- a/src/dialogs.c	Tue Oct 22 13:20:01 2002 +0000
+++ b/src/dialogs.c	Tue Oct 22 13:41:40 2002 +0000
@@ -1165,16 +1165,19 @@
 	GSList *bg = gtk_radio_button_group(GTK_RADIO_BUTTON(deny_type));
 
 	switch (current_deny_gc->permdeny) {
+	case 5:
+		bg = bg->next->next;
+		break;
 	case 4:
 		break;
 	case 3:
-		bg = bg->next->next;
+		bg = bg->next->next->next;
 		break;
 	case 2:
 		bg = bg->next;
 		break;
 	case 1:
-		bg = bg->next->next->next;
+		bg = bg->next->next->next->next;
 		break;
 	}