fix elm table clear to remove elm widget usb obj entries!
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 May 2011 07:04:51 +0000 (07:04 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 May 2011 07:04:51 +0000 (07:04 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@59482 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_table.c

index e037ad9..b22e00a 100644 (file)
@@ -300,8 +300,12 @@ elm_table_unpack(Evas_Object *obj, Evas_Object *subobj)
 EAPI void
 elm_table_clear(Evas_Object *obj, Eina_Bool clear)
 {
+   Eina_List *chld;
+   Evas_Object *o;
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   chld = evas_object_table_children_get(wd->tbl);
+   EINA_LIST_FREE(chld, o) elm_widget_sub_object_del(obj, o);
    evas_object_table_clear(wd->tbl, clear);
 }