Package: gtk

Function gtk-container-focus-child

Lambda List

gtk-container-focus-child (container)

Syntax

(gtk-container-focus-child container) => child
(setf (gtk-container-focus-child container) child)

Arguments

container -- a gtk-container widget
child -- a gtk-widget child widget

Details

Accessor of the current focused child widget in the container.

The gtk-container-focus-child function returns the current focus child widget which will receive the focus inside the container when the container is focussed. This is not the currently focused widget. That can be obtained by calling the gtk-window-focus function. The (setf gtk-container-focus-child) function sets, or unsets, if the child argument is nil, the focused child of the container.

This function emits the "set-focus-child" signal of the container. Implementations of the gtk-container class can override the default behaviour by overriding the handler of this signal.

This function is mostly meant to be used by widgets. Applications can use the gtk-widget-grab-focus function to manualy set the focus to a specific widget.
 

See also

2021-9-12