summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-03-08 08:22:12 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-03-08 08:22:12 -0500
commitf4b69b9c4d850fb646e76f376032fbbbff26ca94 (patch)
treef47f9167c24550fb91978d2cdc6b06de75a63576
parentfbc7c31b33270a4d617bead2cf3baec61cc64b62 (diff)
ui.box,table: update layout when homogeneous mode is changed.
Summary: changing homogeneous mode is needed layout_update. Test Plan: 1. elementary_test -to 'efl.ui.box' 2. Click 'Homogenous' check box. 3. Check layout is updated. Reviewers: zmike, Jaehyun_Cho, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8216
-rw-r--r--src/lib/elementary/efl_ui_box.c6
-rw-r--r--src/lib/elementary/efl_ui_table.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_box.c b/src/lib/elementary/efl_ui_box.c
index c577bb8e9d..eec5a645d8 100644
--- a/src/lib/elementary/efl_ui_box.c
+++ b/src/lib/elementary/efl_ui_box.c
@@ -81,9 +81,13 @@ _evas_box_custom_layout(Evas_Object *evas_box EINA_UNUSED,
81} 81}
82 82
83EOLIAN static void 83EOLIAN static void
84_efl_ui_box_homogeneous_set(Eo *obj EINA_UNUSED, Efl_Ui_Box_Data *pd, Eina_Bool homogeneous) 84_efl_ui_box_homogeneous_set(Eo *obj, Efl_Ui_Box_Data *pd, Eina_Bool homogeneous)
85{ 85{
86 if (pd->homogeneous == !!homogeneous)
87 return;
88
86 pd->homogeneous = !!homogeneous; 89 pd->homogeneous = !!homogeneous;
90 efl_pack_layout_request(obj);
87} 91}
88 92
89EOLIAN static Eina_Bool 93EOLIAN static Eina_Bool
diff --git a/src/lib/elementary/efl_ui_table.c b/src/lib/elementary/efl_ui_table.c
index cc3d240411..7fe398d1ed 100644
--- a/src/lib/elementary/efl_ui_table.c
+++ b/src/lib/elementary/efl_ui_table.c
@@ -123,10 +123,15 @@ _custom_table_calc(Eo *obj, Custom_Table_Data *pd)
123/* End of custom table class */ 123/* End of custom table class */
124 124
125EOLIAN static void 125EOLIAN static void
126_efl_ui_table_homogeneous_set(Eo *obj EINA_UNUSED, Efl_Ui_Table_Data *pd, Eina_Bool homogeneoush, Eina_Bool homogeneousv) 126_efl_ui_table_homogeneous_set(Eo *obj, Efl_Ui_Table_Data *pd, Eina_Bool homogeneoush, Eina_Bool homogeneousv)
127{ 127{
128 if ((pd->homogeneoush == !!homogeneoush) &&
129 (pd->homogeneousv == !!homogeneousv))
130 return;
131
128 pd->homogeneoush = !!homogeneoush; 132 pd->homogeneoush = !!homogeneoush;
129 pd->homogeneousv = !!homogeneousv; 133 pd->homogeneousv = !!homogeneousv;
134 efl_pack_layout_request(obj);
130} 135}
131 136
132EOLIAN static void 137EOLIAN static void