changeset 85:2cae618a91e2

[gaim-migrate @ 95] Made it so that the current_user in ~/.gaimrc is the default user. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 05 Apr 2000 22:43:29 +0000
parents 51943f1a97a0
children 83b0430e9db7
files src/aim.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/aim.c	Wed Apr 05 21:46:07 2000 +0000
+++ b/src/aim.c	Wed Apr 05 22:43:29 2000 +0000
@@ -351,7 +351,13 @@
         gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(remember), (general_options & OPT_GEN_REMEMBER_PASS));
         
 	if (current_user) {
-		gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(name)->entry), current_user->username);
+		GList *all = combo_user_names();
+		GList *srch = g_list_find(all, (void *)current_user->username);
+		int length = g_list_length(all) - g_list_length(srch);
+		g_list_free(srch);
+		g_list_free(all);
+		
+		gtk_combo_set_value_in_list(GTK_COMBO(name), length, 0);
                 if ((general_options & OPT_GEN_REMEMBER_PASS)) {
                         gtk_entry_set_text(GTK_ENTRY(pass), current_user->password);
                 }