Re: [gtk-list] close button in the window title bar



On Sun, 19 Oct 1997, Sven Over wrote:

> Hello!
> 
> How do I use the close button in a window's title bar???

Hmm.. this is becoming a bit of a FAQ :)

You have to connect the "delete_event" to the window.. this handler will
be called when you press the "close" button on the titlebar.  If you want
it to call the "destroy" signal for the window afterwards, return TRUE in
the delete_event signal handler.

Ian



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