[gnome-shell] [StEntry] Use hover support from StWidget
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [StEntry] Use hover support from StWidget
- Date: Wed, 5 May 2010 22:02:07 +0000 (UTC)
commit d6fc2cc36fcec51e53cc7c9f858c8f106ae12c4c
Author: Florian Müllner <fmuellner src gnome org>
Date: Thu Mar 25 15:12:39 2010 +0100
[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.
src/st/st-entry.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/st/st-entry.c b/src/st/st-entry.c
index c783179..1d641b6 100644
--- a/src/st/st-entry.c
+++ b/src/st/st-entry.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]