Fix warnings.

SVN revision: 18290
This commit is contained in:
sebastid 2005-11-04 20:36:05 +00:00 committed by sebastid
parent 9ab4315be8
commit 4ddbb50b01
1 changed files with 13 additions and 14 deletions

View File

@ -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);
/* smart code here */
if(sd->obj)
evas_object_del(sd->obj);
if (sd->obj) evas_object_del(sd->obj);
sd->obj = edje_object_add(evas_object_evas_get(obj));
edje_object_file_set(sd->obj, file, part);
_e_icon_smart_reconfigure(sd);
@ -106,7 +105,7 @@ e_icon_smooth_scale_get(Evas_Object *obj)
sd = evas_object_smart_data_get(obj);
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
return;
return 0;
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);
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
return;
return 0;
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);
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
return;
return NULL;
evas_object_image_size_get(sd->obj, w, h);
return evas_object_image_data_get(sd->obj, 0);
}