projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55373e7
)
flip: use eo_isa for checking object types
author
Amitesh Singh
<amitesh.sh@samsung.com>
Thu, 22 Oct 2015 17:06:01 +0000
(22:36 +0530)
committer
Amitesh Singh
<amitesh.sh@samsung.com>
Thu, 22 Oct 2015 17:07:53 +0000
(22:37 +0530)
src/lib/elm_flip.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_flip.c
b/src/lib/elm_flip.c
index
e9b54f5
..
820a822
100644
(file)
--- 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);