aaaaah fix my fix for preloading multi-target entry stuff to call per

preload target again (fix shortcut)



SVN revision: 59143
This commit is contained in:
Carsten Haitzler 2011-05-03 09:10:10 +00:00
parent 3610be8437
commit eb5208f2f0
2 changed files with 6 additions and 2 deletions

View File

@ -1007,10 +1007,10 @@ evas_object_image_preload(Evas_Object *obj, Eina_Bool cancel)
{
if (!o->preloading)
{
o->preloading = 1;
obj->layer->evas->engine.func->image_data_preload_request(obj->layer->evas->engine.data.output,
o->engine_data,
obj);
o->preloading = 1;
}
}
}
@ -3420,6 +3420,10 @@ Eina_Bool
_evas_object_image_preloading_get(const Evas_Object *obj)
{
Evas_Object_Image *o = (Evas_Object_Image *)(obj->object_data);
if (!o) return EINA_FALSE;
MAGIC_CHECK(o, Evas_Object_Image, MAGIC_OBJ_IMAGE);
return EINA_FALSE;
MAGIC_CHECK_END();
return o->preloading;
}

View File

@ -61,11 +61,11 @@ void
evas_object_inform_call_image_preloaded(Evas_Object *obj)
{
if (!_evas_object_image_preloading_get(obj)) return;
_evas_object_image_preloading_set(obj, 0);
_evas_object_event_new();
evas_object_event_callback_call(obj, EVAS_CALLBACK_IMAGE_PRELOADED, NULL);
_evas_post_event_callback_call(obj->layer->evas);
_evas_object_image_preloading_set(obj, 0);
}
void