GNOME Bugzilla – Bug 770242
gtkbindings: Clarify that widgets need has-focus for bindings to work
Last modified: 2016-08-22 17:07:18 UTC
Trivial patch.
Created attachment 333924 [details] [review] gtkbindings: Clarify that widgets need has-focus for bindings to work
Review of attachment 333924 [details] [review]: ::: gtk/gtkbindings.c @@ +53,3 @@ + * in the widget’s initialisation function; and by calling + * gtk_widget_grab_focus() when the widget is clicked, or on application + * startup. I'd maybe drop the "or on application startup" part, I think it's rather uncommon to grab focus without prior interaction (initial focus after show() being an exception I guess, but also the focus chain takes care of it usually). Looks good to me otherwise :), feel free to push afterwards.
Dropped that bit as suggested. Thanks for the fast review! Attachment 333924 [details] pushed as 92a95c7 - gtkbindings: Clarify that widgets need has-focus for bindings to work