mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
2008-03-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-group.c: * clutter/clutter-texture.c: Use CLUTTER_ACTOR_IS_VISIBLE() and not CLUTTER_ACTOR_IS_MAPPED().
This commit is contained in:
parent
d622eb1682
commit
8efb98edae
@ -1,3 +1,9 @@
|
|||||||
|
2008-03-19 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-group.c:
|
||||||
|
* clutter/clutter-texture.c: Use CLUTTER_ACTOR_IS_VISIBLE()
|
||||||
|
and not CLUTTER_ACTOR_IS_MAPPED().
|
||||||
|
|
||||||
2008-03-19 Emmanuele Bassi <ebassi@openedhand.com>
|
2008-03-19 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-score.[ch]: Small clean ups and refactoring.
|
* clutter/clutter-score.[ch]: Small clean ups and refactoring.
|
||||||
|
@ -99,7 +99,7 @@ clutter_group_paint (ClutterActor *actor)
|
|||||||
|
|
||||||
g_assert (child != NULL);
|
g_assert (child != NULL);
|
||||||
|
|
||||||
if (CLUTTER_ACTOR_IS_MAPPED (child))
|
if (CLUTTER_ACTOR_IS_VISIBLE (child))
|
||||||
clutter_actor_paint (child);
|
clutter_actor_paint (child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ clutter_group_pick (ClutterActor *actor,
|
|||||||
/* Just forward to the paint call which in turn will trigger
|
/* Just forward to the paint call which in turn will trigger
|
||||||
* the child actors also getting 'picked'.
|
* the child actors also getting 'picked'.
|
||||||
*/
|
*/
|
||||||
if (CLUTTER_ACTOR_IS_MAPPED (actor))
|
if (CLUTTER_ACTOR_IS_VISIBLE (actor))
|
||||||
clutter_group_paint (actor);
|
clutter_group_paint (actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1564,7 +1564,7 @@ clutter_texture_set_from_rgb_data (ClutterTexture *texture,
|
|||||||
g_signal_emit (texture, texture_signals[PIXBUF_CHANGE], 0);
|
g_signal_emit (texture, texture_signals[PIXBUF_CHANGE], 0);
|
||||||
|
|
||||||
/* If resized actor may need resizing but paint() will do this */
|
/* If resized actor may need resizing but paint() will do this */
|
||||||
if (CLUTTER_ACTOR_IS_MAPPED (texture))
|
if (CLUTTER_ACTOR_IS_VISIBLE (texture))
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (texture));
|
clutter_actor_queue_redraw (CLUTTER_ACTOR (texture));
|
||||||
|
|
||||||
if (copy_data != NULL)
|
if (copy_data != NULL)
|
||||||
@ -1696,14 +1696,14 @@ clutter_texture_set_from_yuv_data (ClutterTexture *texture,
|
|||||||
0, priv->width, priv->height);
|
0, priv->width, priv->height);
|
||||||
|
|
||||||
if (priv->sync_actor_size)
|
if (priv->sync_actor_size)
|
||||||
clutter_actor_set_size (CLUTTER_ACTOR(texture),
|
clutter_actor_set_size (CLUTTER_ACTOR (texture),
|
||||||
priv->width,
|
priv->width,
|
||||||
priv->height);
|
priv->height);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_signal_emit (texture, texture_signals[PIXBUF_CHANGE], 0);
|
g_signal_emit (texture, texture_signals[PIXBUF_CHANGE], 0);
|
||||||
|
|
||||||
if (CLUTTER_ACTOR_IS_MAPPED (CLUTTER_ACTOR(texture)))
|
if (CLUTTER_ACTOR_IS_VISIBLE (texture))
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR(texture));
|
clutter_actor_queue_redraw (CLUTTER_ACTOR(texture));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -2204,8 +2204,8 @@ clutter_texture_set_area_from_rgb_data (ClutterTexture *texture,
|
|||||||
/* rename signal */
|
/* rename signal */
|
||||||
g_signal_emit (texture, texture_signals[PIXBUF_CHANGE], 0);
|
g_signal_emit (texture, texture_signals[PIXBUF_CHANGE], 0);
|
||||||
|
|
||||||
if (CLUTTER_ACTOR_IS_MAPPED (CLUTTER_ACTOR(texture)))
|
if (CLUTTER_ACTOR_IS_VISIBLE (texture))
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR(texture));
|
clutter_actor_queue_redraw (CLUTTER_ACTOR (texture));
|
||||||
|
|
||||||
if (copy_data != NULL)
|
if (copy_data != NULL)
|
||||||
g_free (copy_data);
|
g_free (copy_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user