e->framespace.h = 0;
e->hinting = EVAS_FONT_HINTING_BYTECODE;
e->current_event = EVAS_CALLBACK_LAST;
- e->name_hash = eina_hash_string_superfast_new(NULL);
+ e->name_hash = eina_hash_string_superfast_new((Eina_Free_Cb)eina_list_free);
eina_clist_init(&e->calc_list);
eina_clist_init(&e->calc_done);
if (obj->name)
{
if (obj->layer && obj->layer->evas && obj->layer->evas->name_hash)
- eina_hash_del(obj->layer->evas->name_hash, obj->name, eo_obj);
+ eina_hash_list_remove(obj->layer->evas->name_hash, obj->name, eo_obj);
free(obj->name);
}
if (!name) obj->name = NULL;
{
obj->name = strdup(name);
if (obj->layer && obj->layer->evas && obj->layer->evas->name_hash)
- eina_hash_add(obj->layer->evas->name_hash, obj->name, eo_obj);
+ eina_hash_list_prepend(obj->layer->evas->name_hash, obj->name, eo_obj);
}
}
_evas_canvas_object_name_find(Eo *eo_e EINA_UNUSED, Evas_Public_Data *e, const char *name)
{
if (!name) return NULL;
- else return (Evas_Object *)eina_hash_find(e->name_hash, name);
+ else return eina_list_data_get(eina_hash_find(e->name_hash, name));
}
static Evas_Object *