Re: [gtk-list] Capturing Destroy Event for widget




On Tue, 30 Nov 1999, Michael wrote:
> I have a widget with some custom data.
> 
> I want to free the custom data before destroying the widget, should I
> capture the
> "destroy_event" signal?
>

Plain "destroy", "destroy_event" means the widget's GdkWindow was
destroyed (an X/Gdk destroy event), "destroy" means the GtkObject was
destroyed (a GtkObject feature). See the blurb about signals vs. events in
my book somewhere, probably in the GtkObject chapter.
 
> Also, when I destroy a GtkMenuItem widget, is the submenu of it destroyed
> too?
> If not, should I use the above method to destroy it too?
> 

Yes, the submenu should be destroyed. 

Havoc




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