[gnome-control-center/gnome-3-6] online-accounts: Don't preselect the first item when adding an account



commit b23aef0aef77c3844c6a665713c68f96b20fb628
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 9 19:12:46 2012 +0100

    online-accounts: Don't preselect the first item when adding an account
    
    Fixes: https://bugzilla.gnome.org/687875

 .../cc-online-accounts-add-account-dialog.c        |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-add-account-dialog.c b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
index 5f68871..7082575 100644
--- a/panels/online-accounts/cc-online-accounts-add-account-dialog.c
+++ b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
@@ -164,6 +164,7 @@ goa_panel_add_account_dialog_realize (GtkWidget *widget)
 {
   GoaPanelAddAccountDialog *add_account = GOA_PANEL_ADD_ACCOUNT_DIALOG (widget);
   GoaPanelAddAccountDialogPrivate *priv = add_account->priv;
+  GtkWidget *button;
   GtkWindow *parent;
 
   parent = gtk_window_get_transient_for (GTK_WINDOW (add_account));
@@ -179,6 +180,9 @@ goa_panel_add_account_dialog_realize (GtkWidget *widget)
   gtk_tree_view_set_model (GTK_TREE_VIEW (priv->tree_view), GTK_TREE_MODEL (priv->list_store));
 
   GTK_WIDGET_CLASS (goa_panel_add_account_dialog_parent_class)->realize (widget);
+
+  button = gtk_dialog_get_widget_for_response (GTK_DIALOG (add_account), GTK_RESPONSE_CANCEL);
+  gtk_widget_grab_focus (button);
 }
 
 static void



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