[Gtk-sharp-list] CloseButton in a Window

Chris Howie cdhowie at gmail.com
Mon Aug 3 10:17:03 EDT 2009


On Sun, Aug 2, 2009 at 9:13 AM, Wolfgang Mauer<W.Mauer at top-soft.info> wrote:
> Thanks,
> but sorry thats not what i am looking for.
> I down want to quit the application, just want to close one single TopLevel window.
> On the "X" i get a DeleteEvent, but normaly on a button, how i know, i must call Destroy() ?!
> So i'm looking for a easy way to have just one event/method.

Calling yourWindow.Destroy() should do what you want.  All of the
widgets contained in the window will also be destroyed and their
memory freed.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Gtk-sharp-list mailing list