Re: problems destroying Gtk2::Window



http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/main.html#Gtk2_main_quit

Basically, you need to call 'Gtk2->main_quit' somewhere in your program to make the event loop stop processing. A good place is to connect to your window's delete event and call it in the callback, like this tutorial shows:

http://forgeftp.novell.com//gtk2-perl-study/documentation/html/c403.html

-Ken

On 09/17/2009 03:40 AM, TomÃÅ BaÅant wrote:
hi
 i working an a small application which uses one main Gtk2::Window. i
have connected the destroy-event and delete-event to it, but after
clicking on X close button of the window manager, the window disappears
and i have no chance to manage it any further.
any idea how to make it obey?




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