forked from enlightenment/efl
[elm] Add missing sizing eval hook at check
Summary: check is not shown in our Tizen demo. sizing eval missing. @fix Test Plan: NA Reviewers: zmike, Hermet, cedric, bu5hm4n Subscribers: bu5hm4n, #reviewers, #committers Tags: #efl Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9378
This commit is contained in:
parent
47423ab720
commit
8c90deecd7
|
@ -129,6 +129,19 @@ _efl_ui_check_efl_ui_widget_on_access_activate(Eo *obj EINA_UNUSED, Efl_Ui_Check
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_efl_ui_check_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Check_Data *_pd EINA_UNUSED)
|
||||||
|
{
|
||||||
|
Evas_Coord minw = -1, minh = -1;
|
||||||
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
||||||
|
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
|
||||||
|
edje_object_size_min_restricted_calc
|
||||||
|
(wd->resize_obj, &minw, &minh, minw, minh);
|
||||||
|
evas_object_size_hint_min_set(obj, minw, minh);
|
||||||
|
evas_object_size_hint_max_set(obj, -1, -1);
|
||||||
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_key_action_activate(Evas_Object *obj, const char *params EINA_UNUSED)
|
_key_action_activate(Evas_Object *obj, const char *params EINA_UNUSED)
|
||||||
{
|
{
|
||||||
|
@ -396,7 +409,8 @@ ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT(MY_CLASS_PFX)
|
||||||
|
|
||||||
#define EFL_UI_CHECK_EXTRA_OPS \
|
#define EFL_UI_CHECK_EXTRA_OPS \
|
||||||
ELM_LAYOUT_CONTENT_ALIASES_OPS(MY_CLASS_PFX), \
|
ELM_LAYOUT_CONTENT_ALIASES_OPS(MY_CLASS_PFX), \
|
||||||
ELM_LAYOUT_TEXT_ALIASES_OPS(MY_CLASS_PFX)
|
ELM_LAYOUT_TEXT_ALIASES_OPS(MY_CLASS_PFX), \
|
||||||
|
ELM_LAYOUT_SIZING_EVAL_OPS(efl_ui_check)
|
||||||
|
|
||||||
|
|
||||||
#include "efl_ui_check.eo.c"
|
#include "efl_ui_check.eo.c"
|
||||||
|
|
|
@ -181,19 +181,6 @@ _efl_ui_radio_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Radio_Data *sd EINA_UNUS
|
||||||
return int_ret;
|
return int_ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
|
||||||
_efl_ui_radio_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Radio_Data *_pd EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Evas_Coord minw = -1, minh = -1;
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
|
||||||
|
|
||||||
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
|
|
||||||
edje_object_size_min_restricted_calc
|
|
||||||
(wd->resize_obj, &minw, &minh, minw, minh);
|
|
||||||
evas_object_size_hint_min_set(obj, minw, minh);
|
|
||||||
evas_object_size_hint_max_set(obj, -1, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_radio_on_cb(void *data,
|
_radio_on_cb(void *data,
|
||||||
Evas_Object *obj EINA_UNUSED,
|
Evas_Object *obj EINA_UNUSED,
|
||||||
|
@ -327,8 +314,7 @@ ELM_WIDGET_KEY_DOWN_DEFAULT_IMPLEMENT(efl_ui_radio, Efl_Ui_Radio_Data)
|
||||||
ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT(MY_CLASS_PFX)
|
ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT(MY_CLASS_PFX)
|
||||||
|
|
||||||
#define EFL_UI_RADIO_EXTRA_OPS \
|
#define EFL_UI_RADIO_EXTRA_OPS \
|
||||||
ELM_LAYOUT_TEXT_ALIASES_OPS(MY_CLASS_PFX), \
|
ELM_LAYOUT_TEXT_ALIASES_OPS(MY_CLASS_PFX)
|
||||||
ELM_LAYOUT_SIZING_EVAL_OPS(efl_ui_radio)
|
|
||||||
|
|
||||||
#include "efl_ui_radio.eo.c"
|
#include "efl_ui_radio.eo.c"
|
||||||
#include "efl_ui_radio_group.eo.c"
|
#include "efl_ui_radio_group.eo.c"
|
||||||
|
|
Loading…
Reference in New Issue