[datefield] use MONTH, NUMBERONLY layout
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 25 Aug 2010 09:59:20 +0000 (18:59 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 25 Aug 2010 09:59:20 +0000 (18:59 +0900)
src/lib/elm_datefield.c

index bc43e17..9840600 100755 (executable)
@@ -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);