Enter and leave, but not to child

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>
Version: GnuPG v0.9.9 (GNU/Linux)
Comment: For info see http://www.gnupg.org


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