From: Enlightenment S. <no-...@en...> - 2011-10-21 23:05:08
|
Log: deprecate elm_genlist_clear and elm_gengrid_clear: use elm_gen_clear instead Author: discomfitor Date: 2011-10-21 16:05:02 -0700 (Fri, 21 Oct 2011) New Revision: 64276 Trac: http://trac.enlightenment.org/e/changeset/64276 Modified: trunk/elementary/src/bin/test_eio.c trunk/elementary/src/bin/test_genlist.c trunk/elementary/src/lib/Elementary.h.in trunk/elementary/src/lib/elc_fileselector.c trunk/elementary/src/lib/elm_gengrid.c trunk/elementary/src/lib/elm_genlist.c trunk/elementary/src/lib/elm_store.c Modified: trunk/elementary/src/bin/test_eio.c =================================================================== --- trunk/elementary/src/bin/test_eio.c 2011-10-21 22:55:45 UTC (rev 64275) +++ trunk/elementary/src/bin/test_eio.c 2011-10-21 23:05:02 UTC (rev 64276) @@ -111,7 +111,7 @@ static void _test_eio_clear(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__) { - elm_genlist_clear(data); + elm_gen_clear(data); } void Modified: trunk/elementary/src/bin/test_genlist.c =================================================================== --- trunk/elementary/src/bin/test_genlist.c 2011-10-21 22:55:45 UTC (rev 64275) +++ trunk/elementary/src/bin/test_genlist.c 2011-10-21 23:05:02 UTC (rev 64276) @@ -179,7 +179,7 @@ my_gl_clear(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { Evas_Object *gl = data; - elm_genlist_clear(gl); + elm_gen_clear(gl); } static void Modified: trunk/elementary/src/lib/Elementary.h.in =================================================================== --- trunk/elementary/src/lib/Elementary.h.in 2011-10-21 22:55:45 UTC (rev 64275) +++ trunk/elementary/src/lib/Elementary.h.in 2011-10-21 23:05:02 UTC (rev 64276) @@ -9294,7 +9294,7 @@ * * @ingroup Gengrid */ - EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1); + EINA_DEPRECATED EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1); /** * Get the selected item in a given gengrid widget @@ -18191,7 +18191,7 @@ * * @ingroup Genlist */ - EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1); + EINA_DEPRECATED EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1); /** * Enable or disable multi-selection in the genlist * Modified: trunk/elementary/src/lib/elc_fileselector.c =================================================================== --- trunk/elementary/src/lib/elc_fileselector.c 2011-10-21 22:55:45 UTC (rev 64275) +++ trunk/elementary/src/lib/elc_fileselector.c 2011-10-21 23:05:02 UTC (rev 64276) @@ -630,8 +630,8 @@ evas_object_smart_callback_call(wr->obj, SIG_DIRECTORY_OPEN, (void *)wr->path); if (!wr->parent) { - elm_genlist_clear(wr->wd->files_list); - elm_gengrid_clear(wr->wd->files_grid); + elm_gen_clear(wr->wd->files_list); + elm_gen_clear(wr->wd->files_grid); eina_stringshare_replace(&wr->wd->path, wr->path); _do_anchors(wr->obj, wr->path); } @@ -727,8 +727,8 @@ evas_object_smart_callback_call(obj, SIG_DIRECTORY_OPEN, (void *)path); if (!parent) { - elm_genlist_clear(wd->files_list); - elm_gengrid_clear(wd->files_grid); + elm_gen_clear(wd->files_list); + elm_gen_clear(wd->files_grid); eina_stringshare_replace(&wd->path, path); _do_anchors(obj, path); } Modified: trunk/elementary/src/lib/elm_gengrid.c =================================================================== --- trunk/elementary/src/lib/elm_gengrid.c 2011-10-21 22:55:45 UTC (rev 64275) +++ trunk/elementary/src/lib/elm_gengrid.c 2011-10-21 23:05:02 UTC (rev 64276) @@ -592,7 +592,7 @@ { Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return; - elm_gengrid_clear(obj); + elm_gen_clear(obj); evas_object_del(wd->pan_smart); wd->pan_smart = NULL; } Modified: trunk/elementary/src/lib/elm_genlist.c =================================================================== --- trunk/elementary/src/lib/elm_genlist.c 2011-10-21 22:55:45 UTC (rev 64275) +++ trunk/elementary/src/lib/elm_genlist.c 2011-10-21 23:05:02 UTC (rev 64276) @@ -550,7 +550,7 @@ { Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return; - elm_genlist_clear(obj); + elm_gen_clear(obj); evas_object_del(wd->pan_smart); wd->pan_smart = NULL; } Modified: trunk/elementary/src/lib/elm_store.c =================================================================== --- trunk/elementary/src/lib/elm_store.c 2011-10-21 22:55:45 UTC (rev 64275) +++ trunk/elementary/src/lib/elm_store.c 2011-10-21 23:05:02 UTC (rev 64276) @@ -583,7 +583,7 @@ evas_object_event_callback_del_full(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st); evas_object_smart_callback_del(st->genlist, "realized", _store_genlist_item_realized); evas_object_smart_callback_del(st->genlist, "unrealized", _store_genlist_item_unrealized); - elm_genlist_clear(st->genlist); + elm_gen_clear(st->genlist); st->genlist = NULL; } if (st->free) st->free(st); @@ -600,14 +600,14 @@ evas_object_event_callback_del_full(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st); evas_object_smart_callback_del(st->genlist, "realized", _store_genlist_item_realized); evas_object_smart_callback_del(st->genlist, "unrealized", _store_genlist_item_unrealized); - elm_genlist_clear(st->genlist); + elm_gen_clear(st->genlist); } st->genlist = obj; if (!st->genlist) return; evas_object_smart_callback_add(st->genlist, "realized", _store_genlist_item_realized, st); evas_object_smart_callback_add(st->genlist, "unrealized", _store_genlist_item_unrealized, st); evas_object_event_callback_add(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st); - elm_genlist_clear(st->genlist); + elm_gen_clear(st->genlist); } EAPI void |