2008-06-09 Colin Walters <walters@verbum.org>
authorwalters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e>
Mon, 9 Jun 2008 19:49:21 +0000 (19:49 +0000)
committerwalters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e>
Mon, 9 Jun 2008 19:49:21 +0000 (19:49 +0000)
Bug 534620: password field focus

* src/krb5-auth-dialog.c: Be sure we focus the
password field every time.
Patch from from Guido Günther.

git-svn-id: http://svn.gnome.org/svn/krb5-auth-dialog/trunk@76 517b70f8-ed25-0410-8bf6-f5db08f7b76e

ChangeLog
src/krb5-auth-dialog.c

index d713cf5..0e452fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-06-09  Colin Walters  <walters@verbum.org>
+
+       Bug 534620: password field focus
+
+       * src/krb5-auth-dialog.c: Be sure we focus the
+       password field every time.
+       Patch from from Guido Günther.
+
 2008-06-09  Colin Walters  <walters@verbum.org>
 
        Bug 534515: cleanups
index 6aa09a5..7d4fcf3 100644 (file)
@@ -271,6 +271,7 @@ auth_dialog_prompter (krb5_context ctx,
 
                entry = glade_xml_get_widget(xml, "krb5_entry");
                krb5_auth_dialog_setup (dialog, (gchar *) prompts[i].prompt, prompts[i].hidden);
+               gtk_widget_grab_focus (entry);
 
                wrong_label = glade_xml_get_widget (xml, "krb5_wrong_label");
                source_id = g_timeout_add (5000, (GSourceFunc)krb5_auth_dialog_wrong_label_update_expiry,