[gnome-shell] StWidget: unset hover when unmapped
- From: Marina Zhurakhinskaya <marinaz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] StWidget: unset hover when unmapped
- Date: Mon, 21 Feb 2011 18:59:13 +0000 (UTC)
commit c692fa468785ffc091a48053b1515f62dcfe3744
Author: Marina Zhurakhinskaya <marinaz redhat com>
Date: Fri Feb 18 21:06:30 2011 -0500
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
src/st/st-widget.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index 7057e90..a089796 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]