From: Jihoon Kim Date: Wed, 25 Aug 2010 09:59:20 +0000 (+0900) Subject: [datefield] use MONTH, NUMBERONLY layout X-Git-Tag: origin~312^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fba0c220061c8227897f16251b0324cef52f3c4c;p=framework%2Fuifw%2Felementary.git [datefield] use MONTH, NUMBERONLY layout --- 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);