Subclassing Gtk2::Window



I'm trying to subclass Gtk2::Window with a property which decides
whether to hide or destroy the window. Demo code is attached.

Trapping the delete and destroy events to hide the window works, as
does allowing destroy to destroy, but I can't get the delete event to
destroy.

What am I missing?

Regards

Jeff

Attachment: window_subclass.pl
Description: Binary data



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