Virtual Method

GtkContainerset_focus_child

Declaration [src]

void
set_focus_child (
  GtkContainer* container,
  GtkWidget* child
)

Description [src]

Sets, or unsets if child is NULL, the focused child of container.

This function emits the GtkContainer::set_focus_child signal of container. Implementations of GtkContainer can override the default behaviour by overriding the class closure of this signal.

This is function is mostly meant to be used by widgets. Applications can use gtk_widget_grab_focus() to manually set the focus to a specific widget.

Parameters

child

Type: GtkWidget

A GtkWidget, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.