summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-03-29 22:59:11 +0000
committerMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-03-29 22:59:11 +0000
commit8822af764d7e8febbd175ff8257af91ec6fdad39 (patch)
treee32155e91364c458121350f9f5120c7e7c53201f /src/bin
parent2290cc7edc8eafb583d0cc276db615c4628bf2bd (diff)
elementary: add an enum for the weekdays, with magic numbers fixes
SVN revision: 69772
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_calendar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/test_calendar.c b/src/bin/test_calendar.c
index e7ed35616..ba10f3a1e 100644
--- a/src/bin/test_calendar.c
+++ b/src/bin/test_calendar.c
@@ -150,7 +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 elm_calendar_first_day_of_week_set(cal, ELM_DAY_MONDAY);
154 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);
155 elm_box_pack_end(bx, cal); 155 elm_box_pack_end(bx, cal);
156 156
@@ -286,7 +286,7 @@ test_calendar2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
286 elm_calendar_min_max_year_set(cal3, -1, -1); 286 elm_calendar_min_max_year_set(cal3, -1, -1);
287 287
288 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); 289 elm_calendar_first_day_of_week_set(cal, ELM_DAY_SATURDAY);
290 elm_calendar_interval_set(cal, 0.4); 290 elm_calendar_interval_set(cal, 0.4);
291 elm_calendar_format_function_set(cal, _format_month_year); 291 elm_calendar_format_function_set(cal, _format_month_year);
292 elm_calendar_min_max_year_set(cal, 2010, 2020); 292 elm_calendar_min_max_year_set(cal, 2010, 2020);