From: seoz Date: Wed, 27 Apr 2011 16:12:56 +0000 (+0000) Subject: Elementary elm_widget: Use Eina_Bool instead of int for boolean type. X-Git-Tag: REL_F_I9200_20110722_1~8^2~50^2~424 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2db0742d31cddeccb57eea18906b6c552b4a76f;p=framework%2Fuifw%2Felementary.git Elementary elm_widget: Use Eina_Bool instead of int for boolean type. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@58969 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 9df2094..67baa9e 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -1775,12 +1775,12 @@ elm_widget_change(Evas_Object *obj) EAPI void elm_widget_disabled_set(Evas_Object *obj, - int disabled) + Eina_Bool disabled) { API_ENTRY return; if (sd->disabled == disabled) return; - sd->disabled = disabled; + sd->disabled = !!disabled; if (sd->focused) { Evas_Object *o, *parent; @@ -1798,7 +1798,7 @@ elm_widget_disabled_set(Evas_Object *obj, if (sd->disable_func) sd->disable_func(obj); } -EAPI int +EAPI Eina_Bool elm_widget_disabled_get(const Evas_Object *obj) { API_ENTRY return 0; diff --git a/src/lib/elm_widget.h b/src/lib/elm_widget.h index 6a58000..9ca4186 100644 --- a/src/lib/elm_widget.h +++ b/src/lib/elm_widget.h @@ -268,8 +268,8 @@ EAPI Evas_Object *elm_widget_parent_get(const Evas_Object *obj); EAPI void elm_widget_focus_steal(Evas_Object *obj); EAPI void elm_widget_activate(Evas_Object *obj); EAPI void elm_widget_change(Evas_Object *obj); -EAPI void elm_widget_disabled_set(Evas_Object *obj, int disabled); -EAPI int elm_widget_disabled_get(const Evas_Object *obj); +EAPI void elm_widget_disabled_set(Evas_Object *obj, Eina_Bool disabled); +EAPI Eina_Bool elm_widget_disabled_get(const Evas_Object *obj); EAPI void elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h); EAPI void elm_widget_show_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); EAPI void elm_widget_focus_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);