forked from AuroraMiddleware/gtk
main: Automatically (un)set PRELIGHT state on widgets
This commit is contained in:
parent
f6e0850ff7
commit
8371b6b857
@ -1337,6 +1337,11 @@ synth_crossing_for_motion (GtkWidget *widget,
|
|||||||
if (other_widget)
|
if (other_widget)
|
||||||
event->crossing.subwindow = g_object_ref (gtk_widget_get_window (other_widget));
|
event->crossing.subwindow = g_object_ref (gtk_widget_get_window (other_widget));
|
||||||
|
|
||||||
|
if (enter)
|
||||||
|
gtk_widget_set_state_flags (widget, GTK_STATE_FLAG_PRELIGHT, FALSE);
|
||||||
|
else
|
||||||
|
gtk_widget_unset_state_flags (widget, GTK_STATE_FLAG_PRELIGHT);
|
||||||
|
|
||||||
gdk_event_get_coords (source, &x, &y);
|
gdk_event_get_coords (source, &x, &y);
|
||||||
event->crossing.x = x;
|
event->crossing.x = x;
|
||||||
event->crossing.y = y;
|
event->crossing.y = y;
|
||||||
|
Loading…
Reference in New Issue
Block a user