From 39d4709b59ea13f18a89d499200b9b7f9277ca20 Mon Sep 17 00:00:00 2001 From: seoz Date: Wed, 7 Mar 2012 16:37:08 +0000 Subject: [PATCH] elm genlist: Applied genlist compress mode API change. Signed-off-by: Daniel Juyung Seo git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68998 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- doc/examples.dox | 2 +- src/edje_externals/elm_genlist.c | 25 ------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/doc/examples.dox b/doc/examples.dox index fcf139c..39094fa 100644 --- a/doc/examples.dox +++ b/doc/examples.dox @@ -4698,7 +4698,7 @@ * elm_genlist_bounce_set(). * * We also want our list to compress items if they are wider than the list - * width (thus we call elm_genlist_compress_mode_set(). + * width (thus we call elm_genlist_mode_set(obj, ELM_LIST_COMPRESS). * * The items have different width, so they are not homogeneous: * elm_genlist_homogeneous_set() is set to false. diff --git a/src/edje_externals/elm_genlist.c b/src/edje_externals/elm_genlist.c index 9c7c773..2ef2b96 100644 --- a/src/edje_externals/elm_genlist.c +++ b/src/edje_externals/elm_genlist.c @@ -12,7 +12,6 @@ typedef struct _Elm_Params_Genlist Eina_Bool always_select_exists:1; Eina_Bool no_select:1; Eina_Bool no_select_exists:1; - Eina_Bool compress:1; Eina_Bool compress_exists:1; Eina_Bool homogeneous:1; Eina_Bool homogeneous_exists:1; @@ -71,8 +70,6 @@ external_genlist_state_set(void *data __UNUSED__, Evas_Object *obj, const void * else elm_genlist_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_DEFAULT); } - if (p->compress_exists) - elm_genlist_compress_mode_set(obj, p->compress); if (p->homogeneous_exists) elm_genlist_homogeneous_set(obj, p->homogeneous); if ((p->h_bounce_exists) && (p->v_bounce_exists)) @@ -133,14 +130,6 @@ external_genlist_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E return EINA_TRUE; } } - else if (!strcmp(param->name, "compress")) - { - if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) - { - elm_genlist_compress_mode_set(obj, param->i); - return EINA_TRUE; - } - } else if (!strcmp(param->name, "homogeneous")) { if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) @@ -224,14 +213,6 @@ external_genlist_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E return EINA_TRUE; } } - else if (!strcmp(param->name, "compress")) - { - if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) - { - param->i = elm_genlist_compress_mode_get(obj); - return EINA_TRUE; - } - } else if (!strcmp(param->name, "homogeneous")) { if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) @@ -297,11 +278,6 @@ external_genlist_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__ mem->no_select = !!param->i; mem->no_select_exists = EINA_TRUE; } - else if (!strcmp(param->name, "compress")) - { - mem->compress = !!param->i; - mem->compress_exists = EINA_TRUE; - } else if (!strcmp(param->name, "homogeneous")) { mem->homogeneous = !!param->i; @@ -346,7 +322,6 @@ static Edje_External_Param_Info external_genlist_params[] = { EDJE_EXTERNAL_PARAM_INFO_BOOL("multi select"), EDJE_EXTERNAL_PARAM_INFO_BOOL("always select"), EDJE_EXTERNAL_PARAM_INFO_BOOL("no select"), - EDJE_EXTERNAL_PARAM_INFO_BOOL("compress"), EDJE_EXTERNAL_PARAM_INFO_BOOL("homogeneous"), EDJE_EXTERNAL_PARAM_INFO_BOOL("height bounce"), EDJE_EXTERNAL_PARAM_INFO_BOOL("width bounce"), -- 2.7.4