From 81f642d4b775b2a1020197c94332077848c5c60b Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 26 Jan 2009 16:24:17 +0000 Subject: [PATCH] Bug 1414 - avoid relayout of ClutterTexture if not syncing size If a ClutterTexture does not sync size, it should be possible to change the texture size without causing a relayout. Signed-off-by: Emmanuele Bassi --- clutter/clutter-texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c index 4d97e33f9..dae07ca42 100644 --- a/clutter/clutter-texture.c +++ b/clutter/clutter-texture.c @@ -1225,7 +1225,8 @@ clutter_texture_set_cogl_texture (ClutterTexture *texture, priv->width, priv->height); - clutter_actor_queue_relayout (CLUTTER_ACTOR (texture)); + if (priv->sync_actor_size) + clutter_actor_queue_relayout (CLUTTER_ACTOR (texture)); } /* rename signal */