From d5b04e24acc8307950e50d1e4fd9c3cecdbb7c82 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sun, 19 Apr 2015 14:57:02 -0300 Subject: [PATCH] source-dialog: always focus user entry when asking credentials --- src/gcal-source-dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index 63d5006c..47228fb6 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -1276,6 +1276,8 @@ prompt_credentials (GcalSourceDialog *dialog, gtk_entry_set_text (GTK_ENTRY (priv->credentials_password_entry), ""); gtk_entry_set_text (GTK_ENTRY (priv->credentials_user_entry), ""); + gtk_widget_grab_focus (priv->credentials_user_entry); + // Show the dialog, then destroy it response = gtk_dialog_run (GTK_DIALOG (priv->credentials_dialog)); @@ -1378,7 +1380,6 @@ discover_sources_cb (GObject *source, EWebDAVDiscoveredSource *src; GSList *discovered_sources, *user_adresses, *aux; GError *error; - gint n_sources, counter; error = NULL;