[clutter/wip/apocalypses/apocalypse-1: 26/43] group: Use the default paint() implementation



commit 20162ee389431471a7ef4b16bc96d01b98337f7e
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Fri Dec 2 15:36:58 2011 +0000

    group: Use the default paint() implementation
    
    ClutterActor's paint implementation is perfectly fine for ClutterGroup:
    it paints the actor's children, which is exactly what ClutteGroup does.

 clutter/clutter-group.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/clutter/clutter-group.c b/clutter/clutter-group.c
index e9445c7..e33c0e4 100644
--- a/clutter/clutter-group.c
+++ b/clutter/clutter-group.c
@@ -73,24 +73,6 @@ struct _ClutterGroupPrivate
 G_DEFINE_TYPE (ClutterGroup, clutter_group, CLUTTER_TYPE_ACTOR)
 
 static void
-clutter_group_real_paint (ClutterActor *actor)
-{
-  GList *children = clutter_actor_get_children (actor);
-
-  CLUTTER_NOTE (PAINT, "ClutterGroup paint enter '%s'",
-                clutter_actor_get_name (actor) ? clutter_actor_get_name (actor)
-                                               : "unknown");
-
-  g_list_foreach (children, (GFunc) clutter_actor_paint, NULL);
-
-  CLUTTER_NOTE (PAINT, "ClutterGroup paint leave '%s'",
-                clutter_actor_get_name (actor) ? clutter_actor_get_name (actor)
-                                               : "unknown");
-
-  g_list_free (children);
-}
-
-static void
 clutter_group_real_pick (ClutterActor       *actor,
                          const ClutterColor *pick)
 {
@@ -225,7 +207,6 @@ clutter_group_class_init (ClutterGroupClass *klass)
   actor_class->get_preferred_width = clutter_group_real_get_preferred_width;
   actor_class->get_preferred_height = clutter_group_real_get_preferred_height;
   actor_class->allocate = clutter_group_real_allocate;
-  actor_class->paint = clutter_group_real_paint;
   actor_class->pick = clutter_group_real_pick;
   actor_class->show_all = clutter_group_real_show_all;
   actor_class->hide_all = clutter_group_real_hide_all;



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