|
From: <cap...@us...> - 2009-01-27 17:32:27
|
Revision: 537
http://enna.svn.sourceforge.net/enna/?rev=537&view=rev
Author: captainigloo
Date: 2009-01-27 17:32:24 +0000 (Tue, 27 Jan 2009)
Log Message:
-----------
Free Wall Picture items
Modified Paths:
--------------
trunk/wall-e/src/bin/wall.c
Modified: trunk/wall-e/src/bin/wall.c
===================================================================
--- trunk/wall-e/src/bin/wall.c 2009-01-27 17:21:32 UTC (rev 536)
+++ trunk/wall-e/src/bin/wall.c 2009-01-27 17:32:24 UTC (rev 537)
@@ -322,6 +322,30 @@
evas_object_move(priv->o_box, x, y);
}
+static void
+_wall_smart_del(Evas_Object *o)
+{
+ Evas_Object *box;
+ Walle_Picture_Item *pi;
+ Eina_List *l;
+
+ WALLE_WALL_DATA_GET(o, priv);
+
+ evas_object_del(priv->o_box);
+ EINA_LIST_FOREACH(priv->o_boxes, l, box)
+ evas_object_del(box);
+
+ EINA_LIST_FOREACH(priv->items, l, pi)
+ {
+ evas_object_del(pi->o_edje);
+ evas_object_image_preload(pi->o_pict, 1);
+ evas_object_del(pi->o_pict);
+ }
+
+
+
+}
+
static Evas_Smart *
_wall_smart_class_new(void)
{
@@ -333,6 +357,7 @@
api.add = _wall_smart_add;
api.resize = _wall_smart_resize;
api.move = _wall_smart_move;
+ api.del = _wall_smart_del;
}
return evas_smart_class_new(&api);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|