Method

GtkWidgetinsert_after

Declaration [src]

void
gtk_widget_insert_after (
  GtkWidget* widget,
  GtkWidget* parent,
  GtkWidget* previous_sibling
)

Description [src]

Sets the parent widget of the widget.

In contrast to gtk_widget_set_parent(), this function inserts widget at a specific position into the list of children of the parent widget.

It will be placed after previous_sibling, or at the beginning if previous_sibling is NULL.

After calling this function, gtk_widget_get_prev_sibling (widget) will return previous_sibling.

If parent is already set as the parent widget of widget, this function can also be used to reorder widget in the child widget list of parent.

This function is primarily meant for widget implementations; if you are just using a widget, you must use its own API for adding children.

Parameters

parent

Type: GtkWidget

The parent widget to insert widget into.

The data is owned by the caller of the method.
previous_sibling

Type: GtkWidget

The new previous sibling of widget.

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