Re: Placing a new box in a button at runtime



Jeff Shipman <shippy@cs.nmt.edu> writes:
> I've got a button which has a box placed in it. If I
> wanted to re-create a new box and place it in the container
> at runtime, what would I need to do?
> 

gtk_container_remove () the old one, then gtk_container_add () the new
one. Note that you must gtk_widget_ref () a child while it's removed
from a container, unless you want the child to be destroyed.

Havoc




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