StWidget: unset hover when unmapped

This ensures that the hover property doesn't return true after
the widget is unmapped while being hovered over.

https://bugzilla.gnome.org/show_bug.cgi?id=642726
This commit is contained in:
Marina Zhurakhinskaya 2011-02-18 21:06:30 -05:00
parent f34ce9271c
commit c692fa4687

View File

@ -444,6 +444,9 @@ st_widget_unmap (ClutterActor *actor)
if (priv->tooltip)
clutter_actor_unmap ((ClutterActor *) priv->tooltip);
if (priv->track_hover && priv->hover)
st_widget_set_hover (ST_WIDGET (actor), FALSE);
}
static void notify_children_of_style_change (ClutterContainer *container);