Widget.setFocusChild

Set @child as the current focus child of @widget.

The previous focus child will be unset.

This function is only suitable for widget implementations. If you want a certain widget to get the input focus, call [method@Gtk.Widget.grab_focus] on it.

class Widget
void
setFocusChild

Parameters

child Widget

a direct child widget of @widget or %NULL to unset the focus child of @widget

Meta