comparison src/aim.c @ 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 9f6ce50ffb78
comparison
equal deleted inserted replaced
84:51943f1a97a0 85:2cae618a91e2
349 349
350 350
351 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(remember), (general_options & OPT_GEN_REMEMBER_PASS)); 351 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(remember), (general_options & OPT_GEN_REMEMBER_PASS));
352 352
353 if (current_user) { 353 if (current_user) {
354 gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(name)->entry), current_user->username); 354 GList *all = combo_user_names();
355 GList *srch = g_list_find(all, (void *)current_user->username);
356 int length = g_list_length(all) - g_list_length(srch);
357 g_list_free(srch);
358 g_list_free(all);
359
360 gtk_combo_set_value_in_list(GTK_COMBO(name), length, 0);
355 if ((general_options & OPT_GEN_REMEMBER_PASS)) { 361 if ((general_options & OPT_GEN_REMEMBER_PASS)) {
356 gtk_entry_set_text(GTK_ENTRY(pass), current_user->password); 362 gtk_entry_set_text(GTK_ENTRY(pass), current_user->password);
357 } 363 }
358 364
359 365