summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <juyung.seo@samsung.com>2014-12-07 18:57:01 +0900
committerDaniel Juyung Seo <juyung.seo@samsung.com>2014-12-07 18:57:01 +0900
commitf62cd368ff3f2debddbf91a6837edd28b379841d (patch)
treeaf5dd92f85b6ef35a568de5e70377f01e4e2c219
parentfbe653993ea44c5efc58ccce7d134e368f495617 (diff)
widget: Add calendar support.
-rw-r--r--src/bin/widget.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/bin/widget.c b/src/bin/widget.c
index cabb63a..536b284 100644
--- a/src/bin/widget.c
+++ b/src/bin/widget.c
@@ -265,6 +265,21 @@ _widget_button_create(Evas_Object *parent, const char* style)
265 return o; 265 return o;
266} 266}
267 267
268// caclendar
269static Evas_Object *
270_widget_calendar_create(Evas_Object *parent, const char *style)
271{
272 Evas_Object *o = NULL;
273
274 o = elm_calendar_add(parent);
275 EXPAND(o); FILL(o);
276 evas_object_show(o);
277
278 elm_object_style_set(o, style);
279
280 return o;
281}
282
268// check 283// check
269static Evas_Object * 284static Evas_Object *
270_widget_check_create(Evas_Object *parent, const char *style) 285_widget_check_create(Evas_Object *parent, const char *style)
@@ -2185,6 +2200,7 @@ widget_create(Evas_Object *parent, Widget_Type widget, const char *orig_style)
2185 ADD_WIDGET(border, ETV_ID_BORDER, style); 2200 ADD_WIDGET(border, ETV_ID_BORDER, style);
2186 ADD_WIDGET(bubble, ETV_ID_BUBBLE, orig_style); 2201 ADD_WIDGET(bubble, ETV_ID_BUBBLE, orig_style);
2187 ADD_WIDGET(button, ETV_ID_BUTTON, orig_style); 2202 ADD_WIDGET(button, ETV_ID_BUTTON, orig_style);
2203 ADD_WIDGET(calendar, ETV_ID_CALENDAR, style);
2188 ADD_WIDGET(check, ETV_ID_CHECK, style); 2204 ADD_WIDGET(check, ETV_ID_CHECK, style);
2189 ADD_WIDGET(clock, ETV_ID_CLOCK, style); 2205 ADD_WIDGET(clock, ETV_ID_CLOCK, style);
2190 ADD_WIDGET(colorselector, ETV_ID_COLORSELECTOR, style); 2206 ADD_WIDGET(colorselector, ETV_ID_COLORSELECTOR, style);