1
From 4a7e14f2fe4aaba751a5de427233a32024f3eb81 Mon Sep 17 00:00:00 2001
2
From: Alban Browaeys <prahal@yahoo.com>
3
Date: Sat, 29 Jun 2013 05:36:29 +0000
4
Subject: backend: Fix pick in the aspect frame
7
(totem:24473): Clutter-WARNING **: The required ID of 2 does not refer
8
to an existing actor; this usually implies that the pick() of an actor
9
is not correctly implemented or that there is an error in the
10
glReadPixels() implementation of the GL driver.
12
Let parent do the pick "draw" for the container as per
13
Example 24. Pick implementation of a container of the clutter
14
reference manual version 1.8, Section "Implementing a new actor".
16
https://bugzilla.gnome.org/show_bug.cgi?id=703368
18
diff --git a/src/backend/totem-aspect-frame.c b/src/backend/totem-aspect-frame.c
19
index 7dee217..7e72e08 100644
20
--- a/src/backend/totem-aspect-frame.c
21
+++ b/src/backend/totem-aspect-frame.c
22
@@ -320,9 +320,7 @@ totem_aspect_frame_pick (ClutterActor *actor,
24
clutter_actor_get_allocation_box (actor, &box);
26
- cogl_set_source_color4ub (color->red, color->green,
27
- color->blue, color->alpha);
28
- cogl_rectangle (box.x1, box.y1, box.x2, box.y2);
29
+ CLUTTER_ACTOR_CLASS (totem_aspect_frame_parent_class)->pick (actor, color);
31
child = clutter_actor_get_child_at_index (actor, 0);