From 632524f67954d84e8778b7ce2f2b9c24673b54d8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 8 Apr 2020 07:43:28 -0400 Subject: 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. --- gtk/gtkcalendar.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk/gtkcalendar.c') diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index f38d8ac91e..1f29f68c00 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -365,6 +365,9 @@ gtk_calendar_class_init (GtkCalendarClass *class) gobject_class->set_property = gtk_calendar_set_property; gobject_class->get_property = gtk_calendar_get_property; + widget_class->focus = gtk_widget_focus_all; + widget_class->grab_focus = gtk_widget_grab_focus_self; + /** * GtkCalendar:year: * -- cgit v1.2.1