Re: problems destroying Gtk2::Window

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:


On 09/17/2009 03:40 AM, TomÃÅ BaÅant wrote:
 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]