forked from enlightenment/efl
parent
1284e077ad
commit
6e0f9db089
|
@ -453,6 +453,8 @@ evas_object_image_source_set(Evas_Object *obj, Evas_Object *src)
|
||||||
abort();
|
abort();
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
if (src)
|
||||||
|
{
|
||||||
if (src->delete_me)
|
if (src->delete_me)
|
||||||
{
|
{
|
||||||
CRIT("Setting object %p to deleted image source %p", src, obj);
|
CRIT("Setting object %p to deleted image source %p", src, obj);
|
||||||
|
@ -478,6 +480,7 @@ evas_object_image_source_set(Evas_Object *obj, Evas_Object *src)
|
||||||
abort();
|
abort();
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (o->cur.source == src) return EINA_TRUE;
|
if (o->cur.source == src) return EINA_TRUE;
|
||||||
|
|
||||||
_evas_object_image_cleanup(obj, o);
|
_evas_object_image_cleanup(obj, o);
|
||||||
|
@ -485,10 +488,7 @@ evas_object_image_source_set(Evas_Object *obj, Evas_Object *src)
|
||||||
if (o->cur.file || o->cur.key)
|
if (o->cur.file || o->cur.key)
|
||||||
evas_object_image_file_set(obj, NULL, NULL);
|
evas_object_image_file_set(obj, NULL, NULL);
|
||||||
|
|
||||||
if (src)
|
if (src) _proxy_set(obj, src);
|
||||||
{
|
|
||||||
_proxy_set(obj, src);
|
|
||||||
}
|
|
||||||
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue