From bcb983942d332bd9bae4e0c5575b69c19852a551 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sat, 14 Jan 2012 04:24:02 +0000 Subject: [PATCH] rename some variables to be more clear SVN revision: 67209 --- legacy/elementary/src/lib/elm_frame.c | 16 ++++++++-------- legacy/elementary/src/lib/elm_frame.h | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/legacy/elementary/src/lib/elm_frame.c b/legacy/elementary/src/lib/elm_frame.c index f118a969d5..ababc1f9c7 100644 --- a/legacy/elementary/src/lib/elm_frame.c +++ b/legacy/elementary/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/legacy/elementary/src/lib/elm_frame.h b/legacy/elementary/src/lib/elm_frame.h index f7b2567d44..98e9987897 100644 --- a/legacy/elementary/src/lib/elm_frame.h +++ b/legacy/elementary/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