summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-10-22 22:36:01 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2015-10-22 22:37:53 +0530
commit7245bc20dc235b4463c21dd8eced6f5f0d98d6fd (patch)
tree4471bf3e4ac4ba0729f4dc694f80aecdc1bf5d97
parent55373e799a797ac48a94ff5ecf1e112924641eed (diff)
flip: use eo_isa for checking object types
-rw-r--r--src/lib/elm_flip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c
index e9b54f5ca..820a822a6 100644
--- a/src/lib/elm_flip.c
+++ b/src/lib/elm_flip.c
@@ -933,11 +933,10 @@ static void
933_map_uv_set(Evas_Object *obj, Evas_Map *map) 933_map_uv_set(Evas_Object *obj, Evas_Map *map)
934{ 934{
935 Evas_Coord x, y, w, h; 935 Evas_Coord x, y, w, h;
936 const char *type = evas_object_type_get(obj);
937 936
938 // FIXME: only handles filled obj 937 // FIXME: only handles filled obj
939 if ((type) && (!strcmp(type, "image") && 938 if (eo_isa(obj, EVAS_IMAGE_CLASS) &&
940 !evas_object_image_source_get(obj))) 939 !evas_object_image_source_get(obj))
941 { 940 {
942 int iw, ih; 941 int iw, ih;
943 evas_object_image_size_get(obj, &iw, &ih); 942 evas_object_image_size_get(obj, &iw, &ih);