From fe346d2ee23eb0d9fca0544f6732c709ec3a4b8b Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Wed, 17 Jan 2018 13:39:33 +0900 Subject: [PATCH] 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 --- .../elementary/clock_input_ctxpopup/clock_input_ctxpopup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/elementary/clock_input_ctxpopup/clock_input_ctxpopup.c b/src/modules/elementary/clock_input_ctxpopup/clock_input_ctxpopup.c index d40e82be0b..73b73e87e2 100644 --- a/src/modules/elementary/clock_input_ctxpopup/clock_input_ctxpopup.c +++ b/src/modules/elementary/clock_input_ctxpopup/clock_input_ctxpopup.c @@ -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); }