[totem/gnome-3-8] backend: Fix pick in the aspect frame



commit d0df8b1fc259d65ee9223f3d47fa4a0b6332c1f7
Author: Alban Browaeys <prahal yahoo com>
Date:   Sat Jun 29 07:36:29 2013 +0200

    backend: Fix pick in the aspect frame
    
    Fixes:
    (totem:24473): Clutter-WARNING **: The required ID of 2 does not refer
    to an existing actor; this usually implies that the pick() of an actor
    is not correctly implemented or that there is an error in the
    glReadPixels() implementation of the GL driver.
    
    Let parent do the pick "draw" for the container as per
    Example 24. Pick implementation of a container of the clutter
    reference manual version 1.8, Section "Implementing a new actor".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703368

 src/backend/totem-aspect-frame.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/backend/totem-aspect-frame.c b/src/backend/totem-aspect-frame.c
index 7dee217..7e72e08 100644
--- a/src/backend/totem-aspect-frame.c
+++ b/src/backend/totem-aspect-frame.c
@@ -320,9 +320,7 @@ totem_aspect_frame_pick (ClutterActor       *actor,
 
   clutter_actor_get_allocation_box (actor, &box);
 
-  cogl_set_source_color4ub (color->red, color->green,
-                            color->blue, color->alpha);
-  cogl_rectangle (box.x1, box.y1, box.x2, box.y2);
+  CLUTTER_ACTOR_CLASS (totem_aspect_frame_parent_class)->pick (actor, color);
 
   child = clutter_actor_get_child_at_index (actor, 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]