forked from enlightenment/efl
deprecate elm_genlist_clear and elm_gengrid_clear: use elm_gen_clear instead
SVN revision: 64276
This commit is contained in:
parent
5852948858
commit
82cfec36d5
|
@ -111,7 +111,7 @@ _gl_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
|
|||
static void
|
||||
_test_eio_clear(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
|
||||
{
|
||||
elm_genlist_clear(data);
|
||||
elm_gen_clear(data);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -179,7 +179,7 @@ static void
|
|||
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
|
||||
|
|
|
@ -9294,7 +9294,7 @@ extern "C" {
|
|||
*
|
||||
* @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 @@ extern "C" {
|
|||
*
|
||||
* @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
|
||||
*
|
||||
|
|
|
@ -630,8 +630,8 @@ _signal_first(Widget_Request *wr)
|
|||
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 @@ _populate(Evas_Object *obj,
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -592,7 +592,7 @@ _del_pre_hook(Evas_Object *obj)
|
|||
{
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -550,7 +550,7 @@ _del_pre_hook(Evas_Object *obj)
|
|||
{
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -583,7 +583,7 @@ elm_store_free(Elm_Store *st)
|
|||
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 @@ elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj)
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue