forked from enlightenment/enlightenment
parent
9ab4315be8
commit
4ddbb50b01
|
@ -65,8 +65,7 @@ e_icon_file_edje_set(Evas_Object *obj, const char *file, const char *part)
|
||||||
|
|
||||||
sd = evas_object_smart_data_get(obj);
|
sd = evas_object_smart_data_get(obj);
|
||||||
/* smart code here */
|
/* smart code here */
|
||||||
if(sd->obj)
|
if (sd->obj) evas_object_del(sd->obj);
|
||||||
evas_object_del(sd->obj);
|
|
||||||
sd->obj = edje_object_add(evas_object_evas_get(obj));
|
sd->obj = edje_object_add(evas_object_evas_get(obj));
|
||||||
edje_object_file_set(sd->obj, file, part);
|
edje_object_file_set(sd->obj, file, part);
|
||||||
_e_icon_smart_reconfigure(sd);
|
_e_icon_smart_reconfigure(sd);
|
||||||
|
@ -106,7 +105,7 @@ e_icon_smooth_scale_get(Evas_Object *obj)
|
||||||
|
|
||||||
sd = evas_object_smart_data_get(obj);
|
sd = evas_object_smart_data_get(obj);
|
||||||
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
|
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
|
||||||
return;
|
return 0;
|
||||||
return evas_object_image_smooth_scale_get(sd->obj);
|
return evas_object_image_smooth_scale_get(sd->obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +127,7 @@ e_icon_alpha_get(Evas_Object *obj)
|
||||||
|
|
||||||
sd = evas_object_smart_data_get(obj);
|
sd = evas_object_smart_data_get(obj);
|
||||||
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
|
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
|
||||||
return;
|
return 0;
|
||||||
return evas_object_image_alpha_get(sd->obj);
|
return evas_object_image_alpha_get(sd->obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,7 +181,7 @@ e_icon_data_get(Evas_Object *obj, int *w, int *h)
|
||||||
|
|
||||||
sd = evas_object_smart_data_get(obj);
|
sd = evas_object_smart_data_get(obj);
|
||||||
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
|
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
|
||||||
return;
|
return NULL;
|
||||||
evas_object_image_size_get(sd->obj, w, h);
|
evas_object_image_size_get(sd->obj, w, h);
|
||||||
return evas_object_image_data_get(sd->obj, 0);
|
return evas_object_image_data_get(sd->obj, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue