Subsribing to unknown events



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I asked a similar question some days ago to the gtk-list. No answer. In
the hope that I'l get an answer here, where people are a bit more in-deph
in th code, I resend it, a bit reformatted and reaimed, to fit this list a
bit better, to this list.

The question:

Is it possible for an application to be noticed about X-events for windows
that are not widgets?

 From what I can see, reading the source of the main-loop, all events
coming from a non-widget window, are sent to the selection-code. If it
finds it's not a dlete-property event, it discards it.

 Is this true? Is there a possibility to hook in somewhere, getting those
events?

 I need this, while I have an application that gtk_socket_steal():s other
application's main windows into it. And if those applications dies (Their
windows are destroyed), I want to be notified, so that my application can
remove some widgets, create some widgets or possibly exit...
With best regards,
Egil Möller

<A Href="http://www.tekmetrics.com/transcript.shtml?pid=29943">TekMetrics Online Public Transcript (e-certifications[tm])</A><Br>
<A Href="http://mini.dhs.org/PGP%20Public%20key.asc">PGP Public key</A><Br>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.9 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4DKj3HeQ6HSAJlUwRAqLyAKCLqvZ2Nj03RV7lIzisT53csW7aSgCdFWsK
8c8wXwG/5GhK/XGDM6fRuRo=
=Qb2v
-----END PGP SIGNATURE-----



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