edje_edit: fix copy&paste type for map functions which should return int 88/82088/2
authorVitalii Vorobiov <vi.vorobiov@samsung.com>
Tue, 7 Jun 2016 13:57:02 +0000 (16:57 +0300)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 3 Aug 2016 09:33:53 +0000 (02:33 -0700)
zplane and focal actually returns int, not Eina_Bool

@fix

Change-Id: Ic384276c8e0406a55425ed41d0d0e8b3ccf57058

src/lib/edje/Edje_Edit.h
src/lib/edje/edje_edit.c

index 41ca4ee..b0c7f91 100644 (file)
@@ -5289,7 +5289,7 @@ EAPI Eina_Bool edje_edit_state_map_rotation_set(Evas_Object *obj, const char *pa
  * @return map.perspective.focal value of given part state.
  * @since 1.11
  **/
-EAPI Eina_Bool edje_edit_state_map_perspective_focal_get(Evas_Object *obj, const char *part, const char *state, double value);
+EAPI int edje_edit_state_map_perspective_focal_get(Evas_Object *obj, const char *part, const char *state, double value);
 
 /** Set map.perspective.focal value of given part state.
  *
@@ -5314,7 +5314,7 @@ EAPI Eina_Bool edje_edit_state_map_perspective_focal_set(Evas_Object *obj, const
  * @return map.perspective.zplane value of given part state.
  * @since 1.11
  **/
-EAPI Eina_Bool edje_edit_state_map_perspective_zplane_get(Evas_Object *obj, const char *part, const char *state, double value);
+EAPI int edje_edit_state_map_perspective_zplane_get(Evas_Object *obj, const char *part, const char *state, double value);
 
 /** Set map.perspective.zplane value of given part state.
  *
index f11c7e0..0c8dddd 100644 (file)
@@ -7737,7 +7737,7 @@ edje_edit_state_map_perspective_zplane_set(Evas_Object *obj, const char *part, c
    return EINA_TRUE;
 }
 
-EAPI Eina_Bool
+EAPI int
 edje_edit_state_map_perspective_zplane_get(Evas_Object *obj, const char *part, const char *state, double value)
 {
    GET_PD_OR_RETURN(EINA_FALSE);
@@ -7756,7 +7756,7 @@ edje_edit_state_map_perspective_focal_set(Evas_Object *obj, const char *part, co
    return EINA_TRUE;
 }
 
-EAPI Eina_Bool
+EAPI int
 edje_edit_state_map_perspective_focal_get(Evas_Object *obj, const char *part, const char *state, double value)
 {
    GET_PD_OR_RETURN(EINA_FALSE);
@@ -14588,18 +14588,6 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s
                       pd->color2.r, pd->color2.g, pd->color2.b, pd->color2.a);
      }
 
-   if ((pd->persp.zplane != 0) || (pd->persp.focal != 1000))
-     {
-        BUF_APPEND(I5 "perspective {\n");
-
-        if (pd->persp.zplane != 0)
-          BUF_APPENDF(I6 "zplane: %d;\n", pd->persp.zplane);
-        if (pd->persp.focal != 1000)
-          BUF_APPENDF(I6 "focal: %d;\n", pd->persp.focal);
-
-        BUF_APPEND(I5 "}\n");
-     }
-
    //Box
    if (rp->part->type == EDJE_PART_TYPE_BOX)
      _edje_generate_source_state_box(pd, inherit_pd, buf);