changeset 1189:3fba730602be

[gaim-migrate @ 1199] this is a test. a test. this is a test. a test. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 02 Dec 2000 20:00:44 +0000
parents 004d472be8a3
children c3ebd5932e32
files src/dialogs.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Sat Dec 02 19:03:21 2000 +0000
+++ b/src/dialogs.c	Sat Dec 02 20:00:44 2000 +0000
@@ -1558,7 +1558,8 @@
 	}
 
 	gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu);
-	gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), 0);
+	gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu),
+			g_list_index(aim_users, ((struct gaim_connection *)connections->data)->user));
 
 	pwd->gc = (struct gaim_connection *)connections->data;
 }
@@ -1710,7 +1711,8 @@
 	}
 
 	gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu);
-	gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), 0);
+	gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu),
+			g_list_index(aim_users, ((struct gaim_connection *)connections->data)->user));
 
 	b->menu = optmenu;
 }
@@ -1756,8 +1758,8 @@
 	gtk_widget_set_usize(b->text, 300, 200);
 	if (aim_users) {
 		gtk_text_insert(GTK_TEXT(b->text), NULL, NULL, NULL,
-				((struct aim_user *)aim_users->data)->user_info, -1);
-		b->user = (struct aim_user *)aim_users->data;
+				((struct gaim_connection *)connections->data)->user->user_info, -1);
+		b->user = ((struct gaim_connection *)connections->data)->user;
 	}
 
 	gtk_widget_show(b->text);