[clutter/wip/correct-opacity: 5/8] clutter-actor: Redraw or relayout when clearing effects or constraints



commit 8df8d4ff0fa667cb25148b451ef754115f5c954b
Author: Neil Roberts <neil linux intel com>
Date:   Tue Mar 1 16:39:22 2011 +0000

    clutter-actor: Redraw or relayout when clearing effects or constraints
    
    When calling clutter_actor_clear_constraints the layout of the actor
    may change so we need to queue a relayout. Similarly when the effects
    are cleared we need to queue a redraw.

 clutter/clutter-actor.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 2e0680f..b9e1e62 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -11495,6 +11495,8 @@ clutter_actor_clear_constraints (ClutterActor *self)
     return;
 
   _clutter_meta_group_clear_metas_no_internal (self->priv->constraints);
+
+  clutter_actor_queue_relayout (self);
 }
 
 /**
@@ -11751,6 +11753,8 @@ clutter_actor_clear_effects (ClutterActor *self)
     return;
 
   _clutter_meta_group_clear_metas_no_internal (self->priv->effects);
+
+  clutter_actor_queue_redraw (self);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]