Method

GtkWidgetset_parent

Declaration [src]

void
gtk_widget_set_parent (
  GtkWidget* widget,
  GtkWidget* parent
)

Description [src]

This function is useful only when implementing subclasses of GtkContainer. Sets the container as the parent of widget, and takes care of some details such as updating the state and style of the child to reflect its new location. The opposite function is gtk_widget_unparent().

Sets propertyGtk.Widget:parent

Parameters

parent

Type: GtkWidget

Parent container.

The data is owned by the caller of the method.