evas/events - use Eina_Bool
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 22 Oct 2012 05:02:53 +0000 (05:02 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 22 Oct 2012 05:02:53 +0000 (05:02 +0000)
SVN revision: 78314

legacy/evas/src/lib/canvas/evas_object_main.c
legacy/evas/src/lib/canvas/evas_object_text.c
legacy/evas/src/lib/canvas/evas_object_textgrid.c

index b7d9e88..8666760 100644 (file)
@@ -696,7 +696,9 @@ _position_set(Eo *eo_obj, void *_pd, va_list *list)
    Evas_Coord y = va_arg(*list, Evas_Coord);
 
    Evas_Public_Data *evas;
-   int is, was = 0, pass = 0, freeze = 0, source_invisible = 0;
+   Eina_Bool is, was = EINA_FALSE;
+   Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE;
+   Eina_Bool source_invisible = EINA_FALSE;
    int nx = 0, ny = 0;
 
    if (obj->delete_me) return;
@@ -790,8 +792,9 @@ _size_set(Eo *eo_obj, void *_pd, va_list *list)
 
    Evas_Coord w = va_arg(*list, Evas_Coord);
    Evas_Coord h = va_arg(*list, Evas_Coord);
-
-   int is, was = 0, pass = 0, freeze = 0, source_invisible = 0;
+   Eina_Bool is, was = EINA_FALSE;
+   Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE;
+   Eina_Bool source_invisible = EINA_FALSE;
 
    if (obj->delete_me) return;
    if (w < 0) w = 0; if (h < 0) h = 0;
index bb1ed2e..b7b1013 100644 (file)
@@ -346,7 +346,9 @@ static void
 _text_font_set(Eo *eo_obj, void *_pd, va_list *list)
 {
    Evas_Object_Text *o = _pd;
-   int is, was = 0, pass = 0, freeze = 0, source_invisible = 0;
+   Eina_Bool is, was = EINA_FALSE;
+   Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE;
+   Eina_Bool source_invisible = EINA_FALSE;
    Evas_Font_Description *fdesc;
 
    const char *font = va_arg(*list, const char*);
index 3d26d75..1c72bfa 100644 (file)
@@ -1078,7 +1078,9 @@ _font_set(Eo *eo_obj, void *_pd, va_list *list)
    Evas_Object_Protected_Data *obj = eo_data_get(eo_obj, EVAS_OBJ_CLASS);
    const char *font_name = va_arg(*list, const char *);
    Evas_Font_Size font_size = va_arg(*list, Evas_Font_Size);
-   int is, was = 0, pass = 0, freeze = 0, source_invisible = 0;
+   Eina_Bool is, was = EINA_FALSE;
+   Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE;
+   Eina_Bool source_invisible = EINA_FALSE;
    Evas_Font_Description *font_description;
    
    if ((!font_name) || (!*font_name) || (font_size <= 0))