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)
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
314 314
315 if (field_type == EFL_UI_CLOCK_TYPE_AMPM) 315 if (field_type == EFL_UI_CLOCK_TYPE_AMPM)
316 { 316 {
317 field_obj = efl_add(EFL_UI_BUTTON_CLASS, ctx_mod->mod_data.base, 317 field_obj = elm_button_add(ctx_mod->mod_data.base);
318 elm_widget_element_update(ctx_mod->mod_data.base,
319 efl_added,
320 PART_NAME_ARRAY[field_type]));
321 efl_event_callback_add 318 efl_event_callback_add
322 (field_obj, EFL_UI_EVENT_CLICKED, _ampm_clicked_cb, ctx_mod); 319 (field_obj, EFL_UI_EVENT_CLICKED, _ampm_clicked_cb, ctx_mod);
323 } 320 }