[clutter/wip/apocalypses/apocalypse-1: 33/43] group: Use the default get_paint_volume()



commit 33ca3d151e9e5d684909cb80a9ca9ac3e684c266
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Dec 5 13:08:41 2011 +0000

    group: Use the default get_paint_volume()
    
    ClutterActor does everything we did, and more.

 clutter/clutter-group.c |   34 ----------------------------------
 1 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/clutter/clutter-group.c b/clutter/clutter-group.c
index e33c0e4..b703aa5 100644
--- a/clutter/clutter-group.c
+++ b/clutter/clutter-group.c
@@ -163,39 +163,6 @@ clutter_group_real_hide_all (ClutterActor *actor)
                              NULL);
 }
 
-static gboolean
-clutter_group_real_get_paint_volume (ClutterActor       *actor,
-                                     ClutterPaintVolume *volume)
-{
-  GList *children, *l;
-  gboolean res = TRUE;
-
-  children = clutter_actor_get_children (actor);
-  if (children == NULL)
-    return TRUE;
-
-  for (l = children; l != NULL; l = l->next)
-    {
-      ClutterActor *child = l->data;
-      const ClutterPaintVolume *child_volume;
-
-      /* This gets the paint volume of the child transformed into the
-       * group's coordinate space... */
-      child_volume = clutter_actor_get_transformed_paint_volume (child, actor);
-      if (child_volume == NULL)
-        {
-          res = FALSE;
-          break;
-        }
-
-      clutter_paint_volume_union (volume, child_volume);
-    }
-
-  g_list_free (children);
-
-  return res;
-}
-
 static void
 clutter_group_class_init (ClutterGroupClass *klass)
 {
@@ -210,7 +177,6 @@ clutter_group_class_init (ClutterGroupClass *klass)
   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;
-  actor_class->get_paint_volume = clutter_group_real_get_paint_volume;
 
   gobject_class->dispose = clutter_group_dispose;
 



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