rename some variables to be more clear
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 14 Jan 2012 04:24:02 +0000 (04:24 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 14 Jan 2012 04:24:02 +0000 (04:24 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67209 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_frame.c
src/lib/elm_frame.h

index f118a96..ababc1f 100644 (file)
@@ -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;
 }
 
index f7b2567..98e9987 100644 (file)
@@ -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