discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=8150643523176ff2bece967177ac56b21d1182a5
commit 8150643523176ff2bece967177ac56b21d1182a5 Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Sat Feb 13 14:38:26 2016 -0500 genlist: bump item class version to 3 to fix abi breakage when adding new methods to public interface structs (such as item class), the version must be bumped and checked in the new interface method calls in order to avoid breaking abi for previously-compiled apps ref 4c86a66f28876b68e92a90c8f741eed1130dd034 --- src/lib/elm_gen.h | 2 +- src/lib/elm_genlist.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_gen.h b/src/lib/elm_gen.h index 08d6eb4..9f2bef7 100644 --- a/src/lib/elm_gen.h +++ b/src/lib/elm_gen.h @@ -55,5 +55,5 @@ typedef Eina_Bool (*Elm_Gen_Item_Filter_Get_Cb)(void *data, */ typedef Evas_Object *(*Elm_Gen_Item_Reusable_Content_Get_Cb)(void *data, Evas_Object *obj, const char *part, Evas_Object *old); /**< Cache Pop class function for gen item classes. */ -#define ELM_GEN_ITEM_CLASS_VERSION 2 +#define ELM_GEN_ITEM_CLASS_VERSION 3 #define ELM_GEN_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_VERSION, 0, 0 diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 742c385..cc2fdcf 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -365,7 +365,8 @@ _item_content_realize(Elm_Gen_Item *it, EINA_LIST_FREE(*contents, content) evas_object_del(content); } - if (it->itc->func.content_get || it->itc->func.reusable_content_get) + if (it->itc->func.content_get || + ((it->itc->version >= 3) && it->itc->func.reusable_content_get)) { Eina_List *source; const char *key; --