[clutter-gtk] actor: Pick using the same order as paint
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] actor: Pick using the same order as paint
- Date: Mon, 10 Feb 2014 17:28:53 +0000 (UTC)
commit cae450696787485bb3db024f2c7b7e59d6fc2ccb
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Jan 17 17:04:14 2014 +0000
actor: Pick using the same order as paint
clutter-gtk/gtk-clutter-actor.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-actor.c b/clutter-gtk/gtk-clutter-actor.c
index b5de571..4edc820 100644
--- a/clutter-gtk/gtk-clutter-actor.c
+++ b/clutter-gtk/gtk-clutter-actor.c
@@ -367,6 +367,24 @@ gtk_clutter_actor_allocate (ClutterActor *actor,
}
static void
+gtk_clutter_actor_pick (ClutterActor *actor,
+ const ClutterColor *color)
+{
+ GtkClutterActorPrivate *priv = GTK_CLUTTER_ACTOR (actor)->priv;
+ ClutterActorIter iter;
+ ClutterActor *child;
+
+ CLUTTER_ACTOR_CLASS (gtk_clutter_actor_parent_class)->pick (actor, color);
+
+ /* we always have the backing texture below everything else */
+ clutter_actor_paint (priv->texture);
+
+ clutter_actor_iter_init (&iter, actor);
+ while (clutter_actor_iter_next (&iter, &child))
+ clutter_actor_paint (child);
+}
+
+static void
gtk_clutter_actor_paint (ClutterActor *actor)
{
GtkClutterActorPrivate *priv = GTK_CLUTTER_ACTOR (actor)->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]