summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-04-08 07:43:28 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-04-09 17:50:29 -0400
commit632524f67954d84e8778b7ce2f2b9c24673b54d8 (patch)
tree2e26d60390c41ebec3cc3b324892f73aee08f54c /gtk/gtkentry.c
parent22e1827f840044ac19c5a090af8511fe37ffcab7 (diff)
downloadgtk+-632524f67954d84e8778b7ce2f2b9c24673b54d8.tar.gz
Reinstate expected focus behavior
After the :can-focus change in the previous commit, widgets need to set suitable focus and grab_focus implementations to implement the desired focus behavior. This commit does that for all widgets.
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 5e95bd6fc3..ac523bf408 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -437,6 +437,7 @@ gtk_entry_class_init (GtkEntryClass *class)
widget_class->query_tooltip = gtk_entry_query_tooltip;
widget_class->direction_changed = gtk_entry_direction_changed;
widget_class->grab_focus = gtk_entry_grab_focus;
+ widget_class->focus = gtk_widget_focus_child;
widget_class->mnemonic_activate = gtk_entry_mnemonic_activate;
quark_entry_completion = g_quark_from_static_string ("gtk-entry-completion-key");