summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_panel.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-20 11:02:39 +0200
committerCedric BAIL <cedric.bail@free.fr>2019-08-20 12:30:07 -0700
commit3c098673abe21b743d546d367d72ef27e8fa1076 (patch)
treecd86be8424183e5c7e04efed81b1d70786070dee /src/lib/elementary/efl_ui_panel.c
parent56752e0b3bc49dc7a48a17c699413ea907343010 (diff)
efl_ui_widget: remove x,y,w,h
this is used for storing the position and size of the widget. However, just in elm_test this eats 2KB of ram, just for saving them. The cases where they have been used do not seem like a great performance hotspot, additionally, in the panel cases the privat data of the widget is achived anyways, so eo is involved and we are spending some time there anyways. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9646
Diffstat (limited to 'src/lib/elementary/efl_ui_panel.c')
-rw-r--r--src/lib/elementary/efl_ui_panel.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/elementary/efl_ui_panel.c b/src/lib/elementary/efl_ui_panel.c
index 1f6f21d..f714580 100644
--- a/src/lib/elementary/efl_ui_panel.c
+++ b/src/lib/elementary/efl_ui_panel.c
@@ -55,14 +55,13 @@ _mirrored_set(Evas_Object *obj,
55EOLIAN static void 55EOLIAN static void
56_efl_ui_panel_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Panel_Data *sd) 56_efl_ui_panel_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Panel_Data *sd)
57{ 57{
58 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 58 if (sd->delete_me) return;
59
60 if (sd->delete_me) return;
61 59
62 if (sd->scrollable) 60 if (sd->scrollable)
63 { 61 {
64 if (sd->hidden) _drawer_close(obj, wd->w, wd->h, EINA_FALSE); 62 Eina_Size2D size = efl_gfx_entity_size_get(obj);
65 else _drawer_open(obj, wd->w, wd->h, EINA_FALSE); 63 if (sd->hidden) _drawer_close(obj, size.w, size.h, EINA_FALSE);
64 else _drawer_open(obj, size.w, size.h, EINA_FALSE);
66 } 65 }
67 66
68 efl_canvas_group_calculate(efl_super(obj, MY_CLASS)); 67 efl_canvas_group_calculate(efl_super(obj, MY_CLASS));