[gnome-control-center] user-accounts: Make Enter work in the 'Add Account' dialogue
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Make Enter work in the 'Add Account' dialogue
- Date: Wed, 24 Apr 2013 07:02:15 +0000 (UTC)
commit a3d7891670b96286a0e882f1bc4190473b431cf1
Author: Stef Walter <stefw gnome org>
Date: Thu Apr 18 18:08:52 2013 +0200
user-accounts: Make Enter work in the 'Add Account' dialogue
Fix various controls where pressing enter did nothing.
https://bugzilla.gnome.org/show_bug.cgi?id=698262
panels/user-accounts/data/account-dialog.ui | 2 ++
panels/user-accounts/um-account-dialog.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/data/account-dialog.ui b/panels/user-accounts/data/account-dialog.ui
index b9c72f6..c0ca054 100644
--- a/panels/user-accounts/data/account-dialog.ui
+++ b/panels/user-accounts/data/account-dialog.ui
@@ -285,6 +285,7 @@
<child internal-child="entry">
<object class="GtkEntry" id="combobox-entry">
<property name="can_focus">True</property>
+ <property name="activates_default">True</property>
</object>
</child>
</object>
@@ -322,6 +323,7 @@
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="invisible_char">●</property>
+ <property name="activates_default">True</property>
<property name="invisible_char_set">True</property>
</object>
<packing>
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index 4f07d71..082e7a3 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -1070,6 +1070,7 @@ um_account_dialog_init (UmAccountDialog *self)
gtk_dialog_add_button (dialog, _("Cancel"), GTK_RESPONSE_CANCEL);
widget = gtk_dialog_add_button (dialog, _("_Add"), GTK_RESPONSE_OK);
+ gtk_dialog_set_default_response (dialog, GTK_RESPONSE_OK);
gtk_widget_grab_default (widget);
widget = (GtkWidget *) gtk_builder_get_object (builder, "account-dialog");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]