diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-19 11:18:02 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-20 16:30:43 -0400 |
commit | d756c6e282518839febbe4ea7f99272b7d21eb8b (patch) | |
tree | 2b4f3be0665db5190196bfddc5956e908211dbbe /gtk/gtkwidget.h | |
parent | eeb41c82d1b5e23a24a91de7ce4999f190ecbb15 (diff) | |
download | gtk+-d756c6e282518839febbe4ea7f99272b7d21eb8b.tar.gz |
Move set_focus_child to GtkWidget
Move the set_focus_child vfunc from GtkContainer
to GtkWidget. This removes the last focus functionality
from GtkContainer.
Update the two users.
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r-- | gtk/gtkwidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 3dd870fc85..a08309efb8 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -187,6 +187,7 @@ struct _GtkWidget * @grab_focus: Causes @widget to have the keyboard focus for the * #GtkWindow it’s inside. * @focus: Vfunc for gtk_widget_child_focus() + * @set_focus_child: Sets the focused child of a widget. Must chain up * @move_focus: Signal emitted when a change of focus is requested * @keynav_failed: Signal emitted if keyboard navigation fails. * @get_accessible: Returns the accessible object that describes the @@ -250,6 +251,8 @@ struct _GtkWidgetClass gboolean (* grab_focus) (GtkWidget *widget); gboolean (* focus) (GtkWidget *widget, GtkDirectionType direction); + void (* set_focus_child) (GtkWidget *widget, + GtkWidget *child); /* keyboard navigation */ void (* move_focus) (GtkWidget *widget, |