[StEntry] Use hover support from StWidget

As StEntry handles hover differently depending on whether it is
activated or not, the generic hover support in StWidget is
insufficient. Nevertheless it makes sense to set the hover status
using StWidget methods instead of setting the pseudo class directly.
This commit is contained in:
Florian Müllner 2010-03-25 15:12:39 +01:00
parent 082a15bbc5
commit d6fc2cc36f

View File

@ -585,7 +585,7 @@ st_entry_enter_event (ClutterActor *actor,
if (priv->hint && priv->hint_visible)
{
st_widget_add_style_pseudo_class (ST_WIDGET (actor), "hover");
st_widget_set_hover (ST_WIDGET (actor), TRUE);
}
return CLUTTER_ACTOR_CLASS (st_entry_parent_class)->enter_event (actor, event);
@ -595,7 +595,7 @@ static gboolean
st_entry_leave_event (ClutterActor *actor,
ClutterCrossingEvent *event)
{
st_widget_remove_style_pseudo_class (ST_WIDGET (actor), "hover");
st_widget_set_hover (ST_WIDGET (actor), FALSE);
return CLUTTER_ACTOR_CLASS (st_entry_parent_class)->leave_event (actor, event);
}