Re: [gtk-list] gtk_container_remove?




Hi,

Just bump the ref count during the move:

gtk_widget_ref(child);
gtk_container_remove(container, child);
gtk_container_add(container2, child);
gtk_widget_unref(child);

I think this is in the FAQ even. :-)

Havoc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]