After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703607 - Enter key does not work on password setting dialog
Enter key does not work on password setting dialog
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: User Accounts
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Ondrej Holy
Control-Center Maintainers
: 661568 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-07-04 12:39 UTC by Chris Cummins
Modified: 2013-07-14 19:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
user-accounts: Use Enter key on password dialog (1.63 KB, patch)
2013-07-04 12:41 UTC, Chris Cummins
needs-work Details | Review
user-accounts: Use Enter key on password dialog (2.01 KB, patch)
2013-07-09 13:11 UTC, Chris Cummins
accepted-commit_now Details | Review
user-accounts: Use Enter key on password dialog (1.88 KB, patch)
2013-07-09 17:24 UTC, Chris Cummins
none Details | Review

Description Chris Cummins 2013-07-04 12:39:47 UTC
There's a small usability issue with the password setting dialog, whereby the enter key doesn't complete the action and respond to the dialog.
Comment 1 Chris Cummins 2013-07-04 12:41:15 UTC
Created attachment 248374 [details] [review]
user-accounts: Use Enter key on password dialog

This allows users to use the enter key on the password setting dialog to complete the action.
Comment 2 Ondrej Holy 2013-07-08 14:36:38 UTC
Review of attachment 248374 [details] [review]:

It would be better to define accelerator for "ok-button" or use something else to be able complete dialog from whatever widget (not only from verify-entry)...

e.g. <accelerator key="Return" signal="activate"/>

::: panels/user-accounts/um-password-dialog.c
@@ +609,3 @@
         g_signal_connect (widget, "notify::text",
                           G_CALLBACK (verify_entry_changed), um);
+        g_signal_connect (widget, "activate",

There should to be g_signal_connect_after instead.
Comment 3 Ondrej Holy 2013-07-08 17:07:47 UTC
*** Bug 661568 has been marked as a duplicate of this bug. ***
Comment 4 Bastien Nocera 2013-07-08 17:09:30 UTC
See gtk_widget_grab_default().
Comment 5 Chris Cummins 2013-07-09 13:11:01 UTC
Created attachment 248722 [details] [review]
user-accounts: Use Enter key on password dialog

Thanks Ondrej and Bastien, it seems the default widget was set correctly, I just had to enable the "activates-default" property for the desired GtkEntries to make this work; revised patch adds "ok-button" accelerator to all text entry widgets.
Comment 6 Ondrej Holy 2013-07-09 15:19:56 UTC
Review of attachment 248722 [details] [review]:

It looks good to me. Please commit to gnome-3-8 and master.
Comment 7 Chris Cummins 2013-07-09 17:24:43 UTC
Created attachment 248756 [details] [review]
user-accounts: Use Enter key on password dialog

This is the same patch (attachment 248722 [details] [review]) rebased on master.
Comment 8 Michael Wood 2013-07-11 09:56:57 UTC
Thanks Pushed

gnome-3-8 796d524166620d5975def9c7c6aa269e2ed1166e
master ab650efdd78c7ef23da035a95e7b9380683862c7
Comment 9 Pacho Ramos 2013-07-14 19:57:46 UTC
(In reply to comment #8)
> Thanks Pushed
> 
> gnome-3-8 796d524166620d5975def9c7c6aa269e2ed1166e

When will a new 3.8.x version including this and all the fixes since last bump be released? Thanks a lot for the info :)

> master ab650efdd78c7ef23da035a95e7b9380683862c7