Re: Dynamic modification of widgets




Landshark <lndshark@megsinet.net> writes:

> Hello,
> 
> I have a window with a horizontally split pane in it right now.  I want
> to, based on user input, modify it so it becomes a vertical split,
> verticle + horizontal, etc.
> 
> How do I go about safely deleting the pane and everything in it?  Could I
> just call gtk_widget_delete on the box holding it, or would that not quite
> do the job?
                       ^^^^^^
s/delete/destroy/

That will work fine. (If, however, you remove some of the widgets it
holds with gtk_container_remove() before destroying it, remember to
gtk_widget_ref() them before removing them and gtk_widget_unref()
after you've added them back in a new location)

Regards,
                                        Owen



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