Enter and leave, but not to child



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

Sorry for the slightly offtopic question!

I am developing an extension to GtkWidget. I have set up event-handlers
for leave_notify_event and enter_notify_event. These are unfourtunately
called both when the pointer enters/leaves the widget (MY testwidget is a 
GtkWindow), and when it enters/leaves a sub-widget (widget contained
inside the window). As a sidenote, this is, as I can see, not the
semantics of the enter and leave notify event of the X protocol. How do I
detect if the leave was to a subwidget's window (and if an enter was from
such a window), or if it was to (or from) the parent window of the widget?
With Best regards,
Egil Möller

P.S. You may think that such an uneducated one as me shouldn't be poking
around in the core GtkObjects, but, please, be patient, and I'l eventually
learn and come up with a working extension! D.S.

<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

iD8DBQE4GB4PHeQ6HSAJlUwRAgaDAKCJJxYYdMQDN3LnwaEOgcKz3cb8qgCcCDOG
XZ5UJnLrSOjs82zpchRBblM=
=Ek4i
-----END PGP SIGNATURE-----



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