mouse enter/leave notifications for insenstive widgets



I have a insensitive (disabled) widget (let's call it as widget-3) and is
drawn over a GtkContainer (let's call it as widget-2).  Both widget-2 and
widget-3 are children of a GtkContainer (let's call it as widget-1).
So, the layout is something like -
On top of widget-1, there is widget-2.
widget-3 is placed over widget-2. I can say infact, widget-2 is partly
covered by widget-3

all of these widgets are hooked to mouse enter/leave notifications. When the
mouse is moved over widget-3, the *expected* behavior has to be either NO
mouse enter/leave notifications should be signalled, or mouse enter/leave
notifications should be triggered for widget-2 as it is drawn underneath of
widget-3.
However, GTK currently triggers mouse enter/leave notification of widget-1,
which is parent of insensitive widget-3.
My Problem is - when I get Mouse enter/leave notification of widget-1 (due
to mouse move over widget-3), is there any way to find out whether that
mouse enter signal is due to the mouse movement over the insensitive
widget-3 ? or is there any other way to prevent the mouse enter signal (of
widget-1) when the mouse is moved over the insensitive widget-3 ?



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