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



commit d7ceca815d8990509bf901920c6e7ba89be3a369
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 5163914..ee6033c 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -11524,6 +11524,8 @@ clutter_actor_clear_constraints (ClutterActor *self)
     return;
 
   _clutter_meta_group_clear_metas_no_internal (self->priv->constraints);
+
+  clutter_actor_queue_relayout (self);
 }
 
 /**
@@ -11780,6 +11782,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]