문제

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