From 5d6d76335e3127c4f74143aa92712a3cb1c2da0a Mon Sep 17 00:00:00 2001 From: discomfitor Date: Sat, 14 Jan 2012 04:24:02 +0000 Subject: [PATCH] rename some variables to be more clear git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67209 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_frame.c | 16 ++++++++-------- src/lib/elm_frame.h | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib/elm_frame.c b/src/lib/elm_frame.c index f118a96..ababc1f 100644 --- a/src/lib/elm_frame.c +++ b/src/lib/elm_frame.c @@ -285,33 +285,33 @@ elm_frame_autocollapse_get(Evas_Object *obj) } EAPI void -elm_frame_collapse_set(Evas_Object *obj, Eina_Bool enable) +elm_frame_collapse_set(Evas_Object *obj, Eina_Bool collapse) { Widget_Data *wd; ELM_CHECK_WIDTYPE(obj, widtype); wd = elm_widget_data_get(obj); if (!wd) return; - enable = !!enable; - if (wd->collapsed == enable) return; + collapse = !!collapse; + if (wd->collapsed == collapse) return; edje_object_signal_emit(wd->frm, "elm,action,switch", "elm"); edje_object_message_signal_process(wd->frm); - wd->collapsed = enable; + wd->collapsed = collapse; wd->anim = EINA_FALSE; _sizing_eval(obj); } EAPI void -elm_frame_collapse_go(Evas_Object *obj, Eina_Bool enable) +elm_frame_collapse_go(Evas_Object *obj, Eina_Bool collapse) { Widget_Data *wd; ELM_CHECK_WIDTYPE(obj, widtype); wd = elm_widget_data_get(obj); if (!wd) return; - enable = !!enable; - if (wd->collapsed == enable) return; + collapse = !!collapse; + if (wd->collapsed == collapse) return; edje_object_signal_emit(wd->frm, "elm,action,toggle", "elm"); evas_object_smart_callback_add(wd->frm, "recalc", (Evas_Smart_Cb)_recalc, obj); - wd->collapsed = enable; + wd->collapsed = collapse; wd->anim = EINA_TRUE; } diff --git a/src/lib/elm_frame.h b/src/lib/elm_frame.h index f7b2567..98e9987 100644 --- a/src/lib/elm_frame.h +++ b/src/lib/elm_frame.h @@ -72,20 +72,20 @@ EAPI Eina_Bool elm_frame_autocollapse_get(Evas_Object *obj); /** * @brief Manually collapse a frame without animations * @param obj The frame - * @param enable true to collapse, false to expand + * @param collapse true to collapse, false to expand * * Use this to toggle the collapsed state of a frame, bypassing animations. */ -EAPI void elm_frame_collapse_set(Evas_Object *obj, Eina_Bool enable); +EAPI void elm_frame_collapse_set(Evas_Object *obj, Eina_Bool collapse); /** * @brief Manually collapse a frame with animations * @param obj The frame - * @param enable true to collapse, false to expand + * @param collapse true to collapse, false to expand * * Use this to toggle the collapsed state of a frame, triggering animations. */ -EAPI void elm_frame_collapse_go(Evas_Object *obj, Eina_Bool enable); +EAPI void elm_frame_collapse_go(Evas_Object *obj, Eina_Bool collapse); /** * @brief Determine the collapse state of a frame -- 2.7.4