Вопрос

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