Mercurial > pidgin
changeset 158:e9414f13d8b7
[gaim-migrate @ 168]
Finally. The correct default user is now chosen. Stupid bugs.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 24 Apr 2000 04:21:22 +0000 |
parents | aad89d9bce85 |
children | d56878f647fb |
files | src/aim.c src/gaimrc.c |
diffstat | 2 files changed, 11 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aim.c Mon Apr 24 03:06:25 2000 +0000 +++ b/src/aim.c Mon Apr 24 04:21:22 2000 +0000 @@ -196,11 +196,9 @@ if (widget == name) { gtk_entry_set_text(GTK_ENTRY(pass),""); gtk_entry_select_region(GTK_ENTRY(GTK_COMBO(name)->entry), 0, 0); - gtk_window_set_focus(GTK_WINDOW(mainwindow), pass); + gtk_widget_grab_focus(pass); } else if (widget == pass) { - gtk_window_set_focus(GTK_WINDOW(mainwindow), signon); - } else { - g_print("what did you press enter on?\n"); + gtk_widget_grab_focus(signon); } } @@ -208,11 +206,10 @@ static void combo_changed(GtkWidget *w, GtkWidget *combo) { - char *txt = gtk_editable_get_chars(GTK_EDITABLE(GTK_COMBO(combo)->entry), 0, -1); + char *txt = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(combo)->entry)); struct aim_user *u; if (!(general_options & OPT_GEN_REMEMBER_PASS)) { - g_free(txt); return; } @@ -224,7 +221,6 @@ gtk_entry_set_text(GTK_ENTRY(pass), ""); } - g_free(txt); return; } @@ -409,13 +405,15 @@ int length = g_list_length(all) - g_list_length(srch); gtk_combo_set_value_in_list(GTK_COMBO(name), length, 0); - if ((general_options & OPT_GEN_REMEMBER_PASS)) { - combo_changed(NULL, name); + if ((general_options & OPT_GEN_REMEMBER_PASS)) { + combo_changed(NULL, name); gtk_widget_grab_focus(signon); - } else + } else { gtk_widget_grab_focus(pass); - } else + } + } else { gtk_widget_grab_focus(name); + } gtk_signal_connect(GTK_OBJECT(remember), "clicked", GTK_SIGNAL_FUNC(set_general_option), (int *)OPT_GEN_REMEMBER_PASS);