[clutter/wip/apocalypses/apocalypse-1: 34/44] group: Use the default get_paint_volume()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/apocalypses/apocalypse-1: 34/44] group: Use the default get_paint_volume()
- Date: Fri, 9 Dec 2011 16:32:43 +0000 (UTC)
commit f1a12b767e4654e026ea1182ad370cc436c1cf2e
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]