static void _prepend_cb(void *data, Evas_Object *o, void *event_info) { Evas_Object *list = data; elm_genlist_item_prepend(list, _itc, (void *)(long)nitems++, NULL, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); }
void GenlistItemBase::Prepend(Evas_Object *_genlist, GenlistItemBase *gparent) { genlist = _genlist; item = elm_genlist_item_prepend(genlist, &item_class, this, (gparent)?gparent->item:NULL, /* parent item */ flags, _item_sel_cb, /* select function */ this); /* select function data */ elm_object_item_data_set(item, this); itemAdded(); }