summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2018-01-17 13:39:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-17 13:49:49 +0900
commitfe346d2ee23eb0d9fca0544f6732c709ec3a4b8b (patch)
treee97cb3ea08dfcb35b8818a85f3f185ff3fcc514f
parent1375705168afe53c3a5b5f61eb32c38864968f41 (diff)
downloadefl-fe346d2ee23eb0d9fca0544f6732c709ec3a4b8b.tar.gz
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
-rw-r--r--src/modules/elementary/clock_input_ctxpopup/clock_input_ctxpopup.c5
1 files changed, 1 insertions, 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);
}