changeset 2561:f9bdfca15404

[gaim-migrate @ 2574] Fixed a bug that causes the group list to not be updated when you change accounts (on the add buddy dialog) [reported by espectro] committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sat, 20 Oct 2001 18:30:20 +0000
parents 0417ecaff0e5
children 6a9438d32268
files ChangeLog src/dialogs.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Oct 19 21:57:09 2001 +0000
+++ b/ChangeLog	Sat Oct 20 18:30:20 2001 +0000
@@ -6,6 +6,8 @@
 	* Better recoding in Gadu-Gadu (thanks Arkadiusz Miskiewicz)
 	* Open Mail button for when you get new mail (Yahoo and MSN)
 	* New buddy pounce option: Popup Notification
+	* When adding a buddy, the groups list now updates when you switch
+	  accounts.
 
 version 0.46 (10/18/2001):
 	* New applet icons (courtesy David Raeman)
--- a/src/dialogs.c	Fri Oct 19 21:57:09 2001 +0000
+++ b/src/dialogs.c	Sat Oct 20 18:30:20 2001 +0000
@@ -816,7 +816,11 @@
 {
 	struct addbuddy *b = gtk_object_get_user_data(w);
 
+	/* Save our account */
 	b->gc = gc;
+
+	/* We also want to update our group list */	
+	gtk_combo_set_popdown_strings(GTK_COMBO(b->combo), groups_tree(gc ? gc : connections->data));
 }
 
 static void create_online_user_names(struct addbuddy *b)