jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ad7e16bcf4af199645da45989e866cb50ced6344

commit ad7e16bcf4af199645da45989e866cb50ced6344
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Aug 3 15:20:58 2017 +0900

    layout: Use only legacy "elm_layout_sizing_eval"
    
    This removes all uses of elm_obj_layout_sizing_eval.
    
    Ref T5315
---
 src/lib/elementary/efl_ui_button.c    |  2 +-
 src/lib/elementary/efl_ui_check.c     |  4 ++--
 src/lib/elementary/efl_ui_nstate.c    |  2 +-
 src/lib/elementary/efl_ui_radio.c     |  2 +-
 src/lib/elementary/elc_fileselector.c |  2 +-
 src/lib/elementary/elm_genlist.c      |  2 +-
 src/lib/elementary/elm_label.c        |  2 +-
 src/lib/elementary/elm_layout.c       | 26 +++++++++++++-------------
 8 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/lib/elementary/efl_ui_button.c 
b/src/lib/elementary/efl_ui_button.c
index e4794be62c..1a3c8fb085 100644
--- a/src/lib/elementary/efl_ui_button.c
+++ b/src/lib/elementary/efl_ui_button.c
@@ -114,7 +114,7 @@ _icon_signal_emit(Evas_Object *obj)
 
    elm_layout_signal_emit(obj, buf, "elm");
    edje_object_message_signal_process(elm_layout_edje_get(obj));
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 }
 
 /* FIXME: replicated from elm_layout just because button's icon spot
diff --git a/src/lib/elementary/efl_ui_check.c 
b/src/lib/elementary/efl_ui_check.c
index 3c97830819..87ed3d5a34 100644
--- a/src/lib/elementary/efl_ui_check.c
+++ b/src/lib/elementary/efl_ui_check.c
@@ -126,7 +126,7 @@ _efl_ui_check_elm_widget_sub_object_del(Eo *obj, 
Efl_Ui_Check_Data *_pd EINA_UNU
 
    _icon_signal_emit(obj);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;
 }
@@ -188,7 +188,7 @@ _efl_ui_check_elm_widget_theme_apply(Eo *obj, 
Efl_Ui_Check_Data *sd EINA_UNUSED)
     * we can changed the theme API */
    _icon_signal_emit(obj);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return int_ret;
 }
diff --git a/src/lib/elementary/efl_ui_nstate.c 
b/src/lib/elementary/efl_ui_nstate.c
index fc5a56fb70..3f9b6c3a58 100644
--- a/src/lib/elementary/efl_ui_nstate.c
+++ b/src/lib/elementary/efl_ui_nstate.c
@@ -57,7 +57,7 @@ _state_active(Evas_Object *obj, Efl_Ui_Nstate_Data *sd)
    sprintf(buf, "elm,state,changed,%d", sd->state);
    elm_layout_signal_emit(obj, buf, "elm");
    edje_object_message_signal_process(elm_layout_edje_get(obj));
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
    efl_event_callback_legacy_call(obj, EFL_UI_NSTATE_EVENT_STATE_CHANGED, 
NULL);
 }
 
diff --git a/src/lib/elementary/efl_ui_radio.c 
b/src/lib/elementary/efl_ui_radio.c
index 2838771794..166bd4c8a1 100644
--- a/src/lib/elementary/efl_ui_radio.c
+++ b/src/lib/elementary/efl_ui_radio.c
@@ -182,7 +182,7 @@ _efl_ui_radio_elm_widget_theme_apply(Eo *obj, 
Efl_Ui_Radio_Data *sd)
     * whenever we can changed the theme API */
    _icon_signal_emit(obj);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return int_ret;
 }
diff --git a/src/lib/elementary/elc_fileselector.c 
b/src/lib/elementary/elc_fileselector.c
index 117e3c87bf..a599b4bed7 100644
--- a/src/lib/elementary/elc_fileselector.c
+++ b/src/lib/elementary/elc_fileselector.c
@@ -2013,7 +2013,7 @@ _elm_fileselector_efl_canvas_group_group_add(Eo *obj, 
Elm_Fileselector_Data *pri
    priv->files_view = _files_list_add(obj);
    elm_object_part_content_set(obj, "elm.swallow.files", priv->files_view);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    _focus_chain_update(obj, priv);
 }
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 9e8f80d31d..38b5d6b0d7 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -440,7 +440,7 @@ _item_content_realize(Elm_Gen_Item *it,
 
                   // FIXME : Layout need sizing eval before group calculate
                   if (efl_class_get(content) == ELM_LAYOUT_CLASS)
-                    elm_obj_layout_sizing_eval(content);
+                    elm_layout_sizing_eval(content);
 
                   _widget_calculate_recursive(content);
                }
diff --git a/src/lib/elementary/elm_label.c b/src/lib/elementary/elm_label.c
index 77f2a90566..b488ce9928 100644
--- a/src/lib/elementary/elm_label.c
+++ b/src/lib/elementary/elm_label.c
@@ -347,7 +347,7 @@ _elm_label_text_set(Eo *obj, Elm_Label_Data *sd, const char 
*part, const char *l
    if (int_ret)
      {
         sd->lastw = -1;
-        elm_obj_layout_sizing_eval(obj);
+        elm_layout_sizing_eval(obj);
         _label_slide_change(obj);
      }
    return int_ret;
diff --git a/src/lib/elementary/elm_layout.c b/src/lib/elementary/elm_layout.c
index 21ece8b98b..a3b843eb75 100644
--- a/src/lib/elementary/elm_layout.c
+++ b/src/lib/elementary/elm_layout.c
@@ -125,7 +125,7 @@ _on_sub_object_size_hint_change(void *data,
                                 void *event_info EINA_UNUSED)
 {
    ELM_WIDGET_DATA_GET_OR_RETURN(data, wd);
-   elm_obj_layout_sizing_eval(data);
+   elm_layout_sizing_eval(data);
 }
 
 static void
@@ -329,7 +329,7 @@ _visuals_refresh(Evas_Object *obj,
 
    ret = elm_obj_widget_disable(obj);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return ret;
 }
@@ -538,7 +538,7 @@ _elm_layout_elm_widget_sub_object_del(Eo *obj, 
Elm_Layout_Smart_Data *sd, Evas_O
         break;
      }
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;
 }
@@ -714,7 +714,7 @@ _on_size_evaluate_signal(void *data,
                          const char *emission EINA_UNUSED,
                          const char *source EINA_UNUSED)
 {
-   elm_obj_layout_sizing_eval(data);
+   elm_layout_sizing_eval(data);
 }
 
 EOLIAN static void
@@ -735,7 +735,7 @@ _elm_layout_efl_canvas_group_group_add(Eo *obj, 
Elm_Layout_Smart_Data *_pd EINA_
    edje_object_signal_callback_add
      (edje, "size,eval", "elm", _on_size_evaluate_signal, obj);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 }
 
 EOLIAN static void
@@ -1050,7 +1050,7 @@ _elm_layout_content_set(Eo *obj, Elm_Layout_Smart_Data 
*sd, const char *part, Ev
         _icon_signal_emit(sd, sub_d, EINA_TRUE);
      }
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
 end:
    return EINA_TRUE;
@@ -1294,7 +1294,7 @@ _elm_layout_text_set(Eo *obj, Elm_Layout_Smart_Data *sd, 
const char *part, const
 
    _text_signal_emit(sd, sub_d, !!text);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    if (_elm_config->access_mode == ELM_ACCESS_MODE_ON &&
        sd->can_access && !(sub_d->obj))
@@ -1370,7 +1370,7 @@ _elm_layout_box_append(Eo *obj, Elm_Layout_Smart_Data 
*sd, const char *part, Eva
    sub_d->type = BOX_APPEND;
    _layout_box_subobj_init(sd, sub_d, part, child);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;
 }
@@ -1407,7 +1407,7 @@ _elm_layout_box_prepend(Eo *obj, Elm_Layout_Smart_Data 
*sd, const char *part, Ev
    sub_d->type = BOX_PREPEND;
    _layout_box_subobj_init(sd, sub_d, part, child);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;
 }
@@ -1449,7 +1449,7 @@ _elm_layout_box_insert_before(Eo *obj, 
Elm_Layout_Smart_Data *sd, const char *pa
    evas_object_event_callback_add
      ((Evas_Object *)reference, EVAS_CALLBACK_DEL, _box_reference_del, sub_d);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;
 }
@@ -1487,7 +1487,7 @@ _elm_layout_box_insert_at(Eo *obj, Elm_Layout_Smart_Data 
*sd, const char *part,
    sub_d->p.box.pos = pos;
    _layout_box_subobj_init(sd, sub_d, part, child);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;
 }
@@ -1585,7 +1585,7 @@ _elm_layout_table_pack(Eo *obj, Elm_Layout_Smart_Data 
*sd, const char *part, Eva
    sd->subs = eina_list_append(sd->subs, sub_d);
    efl_parent_set(child, obj);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;
 }
@@ -1702,7 +1702,7 @@ _elm_layout_efl_canvas_layout_calc_calc_thaw(Eo *obj, 
Elm_Layout_Smart_Data *sd)
 
    edje_object_thaw(wd->resize_obj);
 
-   elm_obj_layout_sizing_eval(obj);
+   elm_layout_sizing_eval(obj);
 
    return 0;
 }

-- 


Reply via email to