[gnome-calendar/calendar-editor] source-dialog: always focus user entry when asking credentials



commit 1b0356cbee109125d600f5aa64c4002085b7b7d3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun Apr 19 14:57:02 2015 -0300

    source-dialog: always focus user entry when asking credentials

 src/gcal-source-dialog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 63d5006..47228fb 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]