Re: 2 Questions about GtkWindows



On Wed, Jun 25, 2003 at 06:44:59PM -0700, Loban A Rahman wrote: 
(2) How do I know if the mouse is currently inside a particular
GtkWindow. I could capture the enter-notify-event and
leave-notify-event. However, these work weirdly.  For example, suppose I
have a GtkWindow that contains a Gtk:abel and a GtkButton. When the
mouse enters anywhere in the GtkWindow, and enter-event fires. However,
if I move from the GtkLabel into the GtkButton, a leave-event fires,
even though the mouse is still inside the entire GtkWindow. I'm
suspecting this is because it has moved over a new GdkWindow (which the
button uses). So, is there a signal I can use that only fires when the
mouse enter/leaves the entire GtkWindow?

The enter/leave events have an extra GdkNotifyType field that
indicates whether the mouse is leaving by going into a subwindow 
or parent window.

Havoc



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