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
*/
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
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;