forked from enlightenment/efl
elm_datetime: use legacy elm_button
Summary: elm_datetime and Efl.Ui.Clock uses same module: clock_input_ctxpopup. The module creates internal field object. Use legay button for field object until Efl.Clock and datetime module policy is fixed. Reviewers: jpeg, CHAN, woohyun Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5725
This commit is contained in:
parent
1375705168
commit
fe346d2ee2
|
@ -314,10 +314,7 @@ field_create(Efl_Ui_Clock_Module_Data *module_data, Efl_Ui_Clock_Type field_typ
|
|||
|
||||
if (field_type == EFL_UI_CLOCK_TYPE_AMPM)
|
||||
{
|
||||
field_obj = efl_add(EFL_UI_BUTTON_CLASS, ctx_mod->mod_data.base,
|
||||
elm_widget_element_update(ctx_mod->mod_data.base,
|
||||
efl_added,
|
||||
PART_NAME_ARRAY[field_type]));
|
||||
field_obj = elm_button_add(ctx_mod->mod_data.base);
|
||||
efl_event_callback_add
|
||||
(field_obj, EFL_UI_EVENT_CLICKED, _ampm_clicked_cb, ctx_mod);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue