Re: How to simulate full window (manager) close-button behaviour?
- Date: Fri, 14 Dec 2007 12:55:10 +0100
- From: Mathias Hasselmann <mathias.hasselmann@xxxxxx>
- Subject: Re: How to simulate full window (manager) close-button behaviour?
Am Freitag, den 14.12.2007, 10:21 +0100 schrieb Toralf Lund: > This is something I've wondered about for a long time. Or maybe I solved > the problem once, but I can't find the code now: > > Is there a simple way to tell Gtk to do exactly what it would do when if > the user pressed the window (window manager) close button, when working > with a Window widget? > > I mean, usually gtk_widget_destroy() or gtk_widget_hide() will be called > as part of the handling, but those functions are not what I'm looking > for; I also want to execute the full event handler "chain" that may lead > to these calls as well as other tests or whatever that are part of the > full close behaviour. Pressing the close button usually causes the window manager to send the WM_DELETE_WINDOW message[1], as described in the ICCCM. A short look over the GDK source code didn't reveal a location where GDK _sends_ that message. So GDK/GTK don't seem to support it. But you could have a look at libwnck, which should have a working implementation for that message. Ciao, Mathias [1] http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1 -- Mathias Hasselmann <mathias.hasselmann@xxxxxx> http://taschenorakel.de/
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list
- Follow-Ups:
- Re: How to simulate full window (manager) close-button behaviour?
- From: Emmanuele Bassi
- Re: How to simulate full window (manager) close-button behaviour?
- References:
- How to simulate full window (manager) close-button behaviour?
- From: Toralf Lund
- How to simulate full window (manager) close-button behaviour?
- Prev by Date: How to simulate full window (manager) close-button behaviour?
- Next by Date: Re: Gtk on Embedded Device Query
- Previous by thread: How to simulate full window (manager) close-button behaviour?
- Next by thread: Re: How to simulate full window (manager) close-button behaviour?
- Index(es):