summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_panel.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-30 13:11:19 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-07-30 13:12:52 -0400
commitadc510f9eec2c6a5807b936f261ae5cdce0d36b4 (patch)
treef3ec520f342294ca0608294d49c68386b36974bf /src/lib/elementary/efl_ui_panel.c
parent6883087ac7dac530062b24b5ea918904589a89c2 (diff)
efl_ui: change calls to elm_layout_sizing_eval to efl_canvas_group_change
Summary: elm_layout_sizing_eval is a legacy function which should not need to be called on new widgets Reviewers: segfaultxavi, bu5hm4n Reviewed By: bu5hm4n Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl_widgets Maniphest Tasks: T8059 Differential Revision: https://phab.enlightenment.org/D9434
Diffstat (limited to 'src/lib/elementary/efl_ui_panel.c')
-rw-r--r--src/lib/elementary/efl_ui_panel.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/elementary/efl_ui_panel.c b/src/lib/elementary/efl_ui_panel.c
index bfa7a93..eba318d 100644
--- a/src/lib/elementary/efl_ui_panel.c
+++ b/src/lib/elementary/efl_ui_panel.c
@@ -239,9 +239,6 @@ _efl_ui_panel_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Panel_Data *sd)
239 efl_content_set(efl_part(efl_super(obj, MY_CLASS), "efl.swallow.event"), sd->event); 239 efl_content_set(efl_part(efl_super(obj, MY_CLASS), "efl.swallow.event"), sd->event);
240 } 240 }
241 241
242 if (efl_finalized_get(obj))
243 elm_layout_sizing_eval(obj);
244
245 return int_ret; 242 return int_ret;
246} 243}
247 244
@@ -740,8 +737,7 @@ _efl_ui_panel_efl_content_content_set(Eo *obj, Efl_Ui_Panel_Data *sd, Efl_Gfx_En
740 elm_widget_sub_object_add(sd->scr_ly, sd->content); 737 elm_widget_sub_object_add(sd->scr_ly, sd->content);
741 } 738 }
742 efl_event_callback_call(obj, EFL_CONTENT_EVENT_CONTENT_CHANGED, content); 739 efl_event_callback_call(obj, EFL_CONTENT_EVENT_CONTENT_CHANGED, content);
743 if (efl_alive_get(obj)) 740 efl_canvas_group_change(obj);
744 elm_layout_sizing_eval(obj);
745 741
746 return EINA_TRUE; 742 return EINA_TRUE;
747} 743}
@@ -790,8 +786,7 @@ _scrollable_layout_resize(Eo *obj, Efl_Ui_Panel_Data *sd, Evas_Coord w, Evas_Coo
790 evas_object_size_hint_min_set(sd->scr_event, w, h); 786 evas_object_size_hint_min_set(sd->scr_event, w, h);
791 break; 787 break;
792 } 788 }
793 if (efl_finalized_get(obj)) 789 efl_canvas_group_change(obj);
794 elm_layout_sizing_eval(obj);
795} 790}
796 791
797EOLIAN static void 792EOLIAN static void
@@ -950,8 +945,7 @@ _efl_ui_panel_orient_set(Eo *obj, Efl_Ui_Panel_Data *sd, Efl_Ui_Panel_Orient ori
950 else 945 else
951 _orient_set_do(obj); 946 _orient_set_do(obj);
952 947
953 if (efl_finalized_get(obj)) 948 efl_canvas_group_change(obj);
954 elm_layout_sizing_eval(obj);
955} 949}
956 950
957EOLIAN static Efl_Ui_Panel_Orient 951EOLIAN static Efl_Ui_Panel_Orient