summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-04-25 22:51:46 +0000
committerMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-04-25 22:51:46 +0000
commit31967880ca1f71d1b9d077e05095600859b0fcd3 (patch)
tree9712a396dd6817e78f8785b55b6eb3a862e57446 /src/bin
parentd07ab81e7b6634cc961e5aedade22b9ff8fe6375 (diff)
elementary: calendar still need glue
SVN revision: 70484
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_calendar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/test_calendar.c b/src/bin/test_calendar.c
index 153cf7e47..9e2acd4b0 100644
--- a/src/bin/test_calendar.c
+++ b/src/bin/test_calendar.c
@@ -312,11 +312,11 @@ void
312test_calendar3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 312test_calendar3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
313{ 313{
314 Evas_Object *win, *cal, *bxx; 314 Evas_Object *win, *cal, *bxx;
315 api_data *api = calloc(1, sizeof(api_data)); 315 struct tm selected_time;
316 time_t current_time;
316 317
317 win = elm_win_util_standard_add("calendar", "Calendar"); 318 win = elm_win_util_standard_add("calendar", "Calendar");
318 elm_win_autodel_set(win, EINA_TRUE); 319 elm_win_autodel_set(win, EINA_TRUE);
319 evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, api);
320 320
321 bxx = elm_box_add(win); 321 bxx = elm_box_add(win);
322 elm_win_resize_object_add(win, bxx); 322 elm_win_resize_object_add(win, bxx);
@@ -326,6 +326,9 @@ test_calendar3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
326 cal = elm_calendar_add(win); 326 cal = elm_calendar_add(win);
327 elm_calendar_first_day_of_week_set(cal, ELM_DAY_THURSDAY); 327 elm_calendar_first_day_of_week_set(cal, ELM_DAY_THURSDAY);
328 elm_calendar_select_mode_set(cal, ELM_CALENDAR_SELECT_MODE_ONDEMAND); 328 elm_calendar_select_mode_set(cal, ELM_CALENDAR_SELECT_MODE_ONDEMAND);
329 current_time = time(NULL) + 34 * 84600;
330 localtime_r(&current_time, &selected_time);
331 elm_calendar_selected_time_set(cal, &selected_time);
329 evas_object_size_hint_weight_set(cal, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 332 evas_object_size_hint_weight_set(cal, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
330 elm_box_pack_end(bxx, cal); 333 elm_box_pack_end(bxx, cal);
331 334