From 4a94deaf5d72e04495ffe021c6dcf7398abab207 Mon Sep 17 00:00:00 2001 From: seoz Date: Wed, 30 Nov 2011 14:40:22 +0000 Subject: [PATCH] elm gen/gengrid/genlist: Fixed wrong elm_gen_clear changes. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65717 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_gen.c | 6 ++++++ src/lib/elm_gen.h | 3 +++ src/lib/elm_gengrid.c | 2 +- src/lib/elm_genlist.c | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_gen.c b/src/lib/elm_gen.c index 08b5a0c..455700a 100644 --- a/src/lib/elm_gen.c +++ b/src/lib/elm_gen.c @@ -498,6 +498,12 @@ elm_gen_item_selected_set(Elm_Gen_Item *it, EAPI void elm_gen_clear(Evas_Object *obj) { + _elm_gen_clear(obj); +} + +void +_elm_gen_clear(Evas_Object *obj) +{ ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return; diff --git a/src/lib/elm_gen.h b/src/lib/elm_gen.h index e36af59..065ae34 100644 --- a/src/lib/elm_gen.h +++ b/src/lib/elm_gen.h @@ -82,3 +82,6 @@ elm_gen_item_del_serious(Elm_Gen_Item *it); void elm_gen_item_del_notserious(Elm_Gen_Item *it); + +void +_elm_gen_clear(Evas_Object *obj); diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 24c6d75..fa76254 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -2211,7 +2211,7 @@ elm_gengrid_horizontal_get(const Evas_Object *obj) EAPI void elm_gengrid_clear(Evas_Object *obj) { - elm_gengrid_clear(obj); + _elm_gen_clear(obj); } EAPI const Evas_Object * diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 4a63069..4613f79 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -3703,7 +3703,7 @@ elm_genlist_item_sorted_insert(Evas_Object *obj, EAPI void elm_genlist_clear(Evas_Object *obj) { - elm_genlist_clear(obj); + _elm_gen_clear(obj); } EAPI void -- 2.7.4