[libchamplain] Remove all actors from container as it's more efficient than removing by one



commit 10d48a30a56a1e74895df65bc45c97e09b33b3c0
Author: JiÅ?í Techet <techet gmail com>
Date:   Sun Apr 3 11:39:34 2011 +0200

    Remove all actors from container as it's more efficient than removing by one

 champlain/champlain-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 4f5bf00..7c406d0 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -2067,8 +2067,8 @@ remove_all_tiles (ChamplainView *view)
       ChamplainTile *tile = CHAMPLAIN_TILE (child->data);
 
       champlain_tile_set_state (tile, CHAMPLAIN_STATE_DONE);
-      clutter_container_remove_actor (CLUTTER_CONTAINER (priv->map_layer), CLUTTER_ACTOR (tile));
     }
+  champlain_group_remove_all (CHAMPLAIN_GROUP (priv->map_layer));
   g_list_free (children);
 }
 



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