Re: widget_destroy() question



On 08/16/2012 09:03 PM, Vlasov Vitaly wrote:
        For example, i got frame in which packed vbox. In vbox packed in five
buttons.
If i call gtk_widget_destroy(), all packed widget's will be destroyed? or only
frame?

Calling widget_destroy will automatically destroy child widgets. If you want all widgets destroyed at one time you should destroy the vbox. If you want only one button destroyed you should call destroy on only that one button.



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