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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top