ami pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=7245bc20dc235b4463c21dd8eced6f5f0d98d6fd

commit 7245bc20dc235b4463c21dd8eced6f5f0d98d6fd
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Thu Oct 22 22:36:01 2015 +0530

    flip: use eo_isa for checking object types
---
 src/lib/elm_flip.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c
index e9b54f5..820a822 100644
--- a/src/lib/elm_flip.c
+++ b/src/lib/elm_flip.c
@@ -933,11 +933,10 @@ static void
 _map_uv_set(Evas_Object *obj, Evas_Map *map)
 {
    Evas_Coord x, y, w, h;
-   const char *type = evas_object_type_get(obj);
 
    // FIXME: only handles filled obj
-   if ((type) && (!strcmp(type, "image") &&
-                  !evas_object_image_source_get(obj)))
+   if (eo_isa(obj, EVAS_IMAGE_CLASS) &&
+       !evas_object_image_source_get(obj))
      {
         int iw, ih;
         evas_object_image_size_get(obj, &iw, &ih);

-- 


Reply via email to