diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-08 07:43:28 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-09 17:50:29 -0400 |
commit | 632524f67954d84e8778b7ce2f2b9c24673b54d8 (patch) | |
tree | 2e26d60390c41ebec3cc3b324892f73aee08f54c /gtk/gtkfontbutton.c | |
parent | 22e1827f840044ac19c5a090af8511fe37ffcab7 (diff) | |
download | gtk+-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/gtkfontbutton.c')
-rw-r--r-- | gtk/gtkfontbutton.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index 1e5cf9889e..1cad2f6c59 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -41,6 +41,7 @@ #include "gtkprivate.h" #include "gtkseparator.h" #include "gtkstylecontext.h" +#include "gtkwidgetprivate.h" #include <string.h> #include <stdio.h> @@ -483,6 +484,9 @@ gtk_font_button_class_init (GtkFontButtonClass *klass) gobject_class->set_property = gtk_font_button_set_property; gobject_class->get_property = gtk_font_button_get_property; + widget_class->grab_focus = gtk_widget_grab_focus_child; + widget_class->focus = gtk_widget_focus_child; + klass->font_set = NULL; _gtk_font_chooser_install_properties (gobject_class); |