lanoxx
lanoxx

Reputation: 13041

GtkBox: Insert widget at position

How do I insert a GtkWidget at a specific location of a GtkBox?

I have

GtkWidget *item = ...;
GtkBox* list = ...;
gint pos = ...;

Now I want to place the item into the list at postion pos.

Upvotes: 0

Views: 417

Answers (1)

unwind
unwind

Reputation: 399753

Add the widget, then reorder it using gtk_box_reorder_child().

Upvotes: 3

Related Questions