From 450ac94e49466853b2464de6eecf3af0faf554a2 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 14 Jun 2007 19:57:29 +0000 Subject: [PATCH] Override ClutterActor::pick Override the default ClutterActor::pick method, by calling a full paint of the box actor like ClutterGroup does. --- clutter/clutter-box.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/clutter/clutter-box.c b/clutter/clutter-box.c index 9d2c83a79..a3a832835 100644 --- a/clutter/clutter-box.c +++ b/clutter/clutter-box.c @@ -160,6 +160,14 @@ clutter_box_paint (ClutterActor *actor) cogl_pop_matrix (); } +static void +clutter_box_pick (ClutterActor *actor, + const ClutterColor *color) +{ + /* just repaint; in the future we might enter in a "focused" status here */ + clutter_actor_paint (actor); +} + static void clutter_box_dispose (GObject *gobject) { @@ -249,6 +257,7 @@ clutter_box_class_init (ClutterBoxClass *klass) actor_class->show_all = clutter_box_show_all; actor_class->hide_all = clutter_box_hide_all; actor_class->paint = clutter_box_paint; + actor_class->pick = clutter_box_pick; klass->pack_child = clutter_box_pack_child_unimplemented; klass->unpack_child = clutter_box_unpack_child_unimplemented;