summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubodh Kumar <s7158.kumar@samsung.com>2019-07-22 09:09:00 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-07-22 09:09:00 -0400
commit63275dfef864282170e0c30d765eddf3ee41cd27 (patch)
tree2b3d22db0731b9a38cc283fe517e6c9f85ac0da1
parent98b19244329725c76ba601ea66ad5161841a68b9 (diff)
[elm] Add missing sizing eval hook at radio
Summary: radio is not shown in our Tizen demo. sizing eval missing. @fix Reviewers: Hermet, bu5hm4n, cedric, zmike Reviewed By: zmike Subscribers: akanad, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9356
-rw-r--r--src/lib/elementary/efl_ui_radio.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_radio.c b/src/lib/elementary/efl_ui_radio.c
index edbc14844f..099001fdb3 100644
--- a/src/lib/elementary/efl_ui_radio.c
+++ b/src/lib/elementary/efl_ui_radio.c
@@ -181,6 +181,19 @@ _efl_ui_radio_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Radio_Data *sd EINA_UNUS
181 return int_ret; 181 return int_ret;
182} 182}
183 183
184EOLIAN static void
185_efl_ui_radio_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Radio_Data *_pd EINA_UNUSED)
186{
187 Evas_Coord minw = -1, minh = -1;
188 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
189
190 elm_coords_finger_size_adjust(1, &minw, 1, &minh);
191 edje_object_size_min_restricted_calc
192 (wd->resize_obj, &minw, &minh, minw, minh);
193 evas_object_size_hint_min_set(obj, minw, minh);
194 evas_object_size_hint_max_set(obj, -1, -1);
195}
196
184static void 197static void
185_radio_on_cb(void *data, 198_radio_on_cb(void *data,
186 Evas_Object *obj EINA_UNUSED, 199 Evas_Object *obj EINA_UNUSED,
@@ -314,7 +327,8 @@ ELM_WIDGET_KEY_DOWN_DEFAULT_IMPLEMENT(efl_ui_radio, Efl_Ui_Radio_Data)
314ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT(MY_CLASS_PFX) 327ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT(MY_CLASS_PFX)
315 328
316#define EFL_UI_RADIO_EXTRA_OPS \ 329#define EFL_UI_RADIO_EXTRA_OPS \
317 ELM_LAYOUT_TEXT_ALIASES_OPS(MY_CLASS_PFX) 330 ELM_LAYOUT_TEXT_ALIASES_OPS(MY_CLASS_PFX), \
331 ELM_LAYOUT_SIZING_EVAL_OPS(efl_ui_radio)
318 332
319#include "efl_ui_radio.eo.c" 333#include "efl_ui_radio.eo.c"
320#include "efl_ui_radio_group.eo.c" 334#include "efl_ui_radio_group.eo.c"