From fba0c220061c8227897f16251b0324cef52f3c4c Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 25 Aug 2010 18:59:20 +0900 Subject: [PATCH] [datefield] use MONTH, NUMBERONLY layout --- src/lib/elm_datefield.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_datefield.c b/src/lib/elm_datefield.c index bc43e17..9840600 100755 --- a/src/lib/elm_datefield.c +++ b/src/lib/elm_datefield.c @@ -505,7 +505,14 @@ _date_entry_add(Evas_Object *obj) { wd->date[i] = elm_entry_add(obj); elm_entry_context_menu_disabled_set(wd->date[i], EINA_TRUE); - elm_entry_input_panel_layout_set(wd->date[i], ELM_INPUT_PANEL_LAYOUT_NUMBER); + if (i == DATE_MON) + { + elm_entry_input_panel_layout_set(wd->date[i], ELM_INPUT_PANEL_LAYOUT_MONTH); + } + else + { + elm_entry_input_panel_layout_set(wd->date[i], ELM_INPUT_PANEL_LAYOUT_NUMBERONLY); + } evas_object_size_hint_weight_set(wd->date[i], EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(wd->date[i], EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_smart_callback_add(wd->date[i], "focused", _entry_focused_cb, obj); @@ -531,7 +538,7 @@ _time_entry_add(Evas_Object *obj) { wd->time[i] = elm_entry_add(obj); elm_entry_context_menu_disabled_set(wd->time[i], EINA_TRUE); - elm_entry_input_panel_layout_set(wd->time[i], ELM_INPUT_PANEL_LAYOUT_NUMBER); + elm_entry_input_panel_layout_set(wd->time[i], ELM_INPUT_PANEL_LAYOUT_NUMBERONLY); elm_entry_maximum_bytes_set(wd->time[i], TIME_MAX_LENGTH); evas_object_size_hint_weight_set(wd->time[i], EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(wd->time[i], EVAS_HINT_FILL, EVAS_HINT_FILL); -- 2.7.4