From: hermet Date: Thu, 16 Feb 2012 08:08:16 +0000 (+0000) Subject: elementary/flip - elm_flip_front_get -> elm_flip_front_visible_get X-Git-Tag: REL_F_I9500_20120323_1~17^2~698 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a969672f72e46437793b14cdb6a02d577eca17b4;p=framework%2Fuifw%2Felementary.git elementary/flip - elm_flip_front_get -> elm_flip_front_visible_get git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68011 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_deprecated.h b/src/lib/elm_deprecated.h index 4bf5b78..799f305 100644 --- a/src/lib/elm_deprecated.h +++ b/src/lib/elm_deprecated.h @@ -4631,3 +4631,15 @@ EINA_DEPRECATED EAPI Evas_Object *elm_flip_content_front_unset(Evas_Obje */ EINA_DEPRECATED EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj); +/** + * @brief Get flip front visibility state + * + * @param obj The flip object + * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is + * showing. + * + * @deprecated Use elm_flip_front_visible_get() instead + */ +EINA_DEPRECATED EAPI Eina_Bool elm_flip_front_get(const Evas_Object *obj); + + diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c index 380b1bf..81c449a 100644 --- a/src/lib/elm_flip.c +++ b/src/lib/elm_flip.c @@ -793,7 +793,7 @@ static void flip_show_hide(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); - if (elm_flip_front_get(obj)) + if (elm_flip_front_visible_get(obj)) { if (wd->pageflip) { @@ -1808,7 +1808,7 @@ elm_flip_content_back_unset(Evas_Object *obj) } EAPI Eina_Bool -elm_flip_front_get(const Evas_Object *obj) +elm_flip_front_visible_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -1816,6 +1816,12 @@ elm_flip_front_get(const Evas_Object *obj) return wd->state; } +EAPI Eina_Bool +elm_flip_front_get(const Evas_Object *obj) +{ + return elm_flip_front_get(obj); +} + EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc __UNUSED__, Evas_Coord x __UNUSED__, Evas_Coord y __UNUSED__) { diff --git a/src/lib/elm_flip.h b/src/lib/elm_flip.h index a8bb1e5..29fb97a 100644 --- a/src/lib/elm_flip.h +++ b/src/lib/elm_flip.h @@ -71,7 +71,6 @@ typedef enum */ EAPI Evas_Object *elm_flip_add(Evas_Object *parent); - /** * @brief Get flip front visibility state * @@ -79,7 +78,7 @@ EAPI Evas_Object *elm_flip_add(Evas_Object *parent); * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is * showing. */ -EAPI Eina_Bool elm_flip_front_get(const Evas_Object *obj); +Eina_Bool elm_flip_front_visible_get(const Evas_Object *obj); /** * @brief Set flip perspective