[gnome-calendar] source-dialog: always focus user entry when asking credentials
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: always focus user entry when asking credentials
- Date: Mon, 25 May 2015 16:58:42 +0000 (UTC)
commit d5b04e24acc8307950e50d1e4fd9c3cecdbb7c82
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]