summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-03-29 22:14:30 +0000
committerMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-03-29 22:14:30 +0000
commit2290cc7edc8eafb583d0cc276db615c4628bf2bd (patch)
treed1a61ae8a57243b16e46702cbef558fec569f0ab /src/bin
parent608bbcba3b938384f110b8f70e123859311e5c64 (diff)
elementary: add 2 API, the first one is to set the first day of week in elm_calendar, and the second to get the info. I use a more trivial way to set headers ^^
SVN revision: 69771
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_calendar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/test_calendar.c b/src/bin/test_calendar.c
index d5e4e6da6..e7ed35616 100644
--- a/src/bin/test_calendar.c
+++ b/src/bin/test_calendar.c
@@ -150,6 +150,7 @@ test_calendar(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
150 elm_box_pack_end(bxx, bx); 150 elm_box_pack_end(bxx, bx);
151 151
152 cal = elm_calendar_add(win); 152 cal = elm_calendar_add(win);
153 elm_calendar_first_day_of_week_set(cal, 1);
153 evas_object_size_hint_weight_set(cal, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 154 evas_object_size_hint_weight_set(cal, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
154 elm_box_pack_end(bx, cal); 155 elm_box_pack_end(bx, cal);
155 156
@@ -285,6 +286,7 @@ test_calendar2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
285 elm_calendar_min_max_year_set(cal3, -1, -1); 286 elm_calendar_min_max_year_set(cal3, -1, -1);
286 287
287 elm_calendar_weekdays_names_set(cal, weekdays); 288 elm_calendar_weekdays_names_set(cal, weekdays);
289 elm_calendar_first_day_of_week_set(cal, 6);
288 elm_calendar_interval_set(cal, 0.4); 290 elm_calendar_interval_set(cal, 0.4);
289 elm_calendar_format_function_set(cal, _format_month_year); 291 elm_calendar_format_function_set(cal, _format_month_year);
290 elm_calendar_min_max_year_set(cal, 2010, 2020); 292 elm_calendar_min_max_year_set(cal, 2010, 2020);