summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-04-19 09:03:59 +0000
committerMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-04-19 09:03:59 +0000
commite52ac2a690306a5a8c74112c38cd9fc29e3ddbb5 (patch)
tree6a66b05ba07d31379d57edf94d8f944098627688 /src/bin
parente1f626acd08287ab9d32aff71d45b87ab9cbea3d (diff)
elemntary: mr proper with council from SeoZ. Add _MODE_ to the enum
SVN revision: 70326
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_calendar.c34
1 files changed, 6 insertions, 28 deletions
diff --git a/src/bin/test_calendar.c b/src/bin/test_calendar.c
index d7995f413..153cf7e47 100644
--- a/src/bin/test_calendar.c
+++ b/src/bin/test_calendar.c
@@ -70,7 +70,7 @@ set_api_state(api_data *api)
70 time_t sec_per_day = (60*60*24); 70 time_t sec_per_day = (60*60*24);
71 time_t sec_per_year = sec_per_day * 365; 71 time_t sec_per_year = sec_per_day * 365;
72 time_t the_time = (sec_per_year * 41) + (sec_per_day * 10); /* Set date to JAN 01, 2011 */ 72 time_t the_time = (sec_per_year * 41) + (sec_per_day * 10); /* Set date to JAN 01, 2011 */
73 elm_calendar_select_mode_set(cal, ELM_CALENDAR_SELECT_NONE); 73 elm_calendar_select_mode_set(cal, ELM_CALENDAR_SELECT_MODE_NONE);
74 elm_calendar_selected_time_set(cal, gmtime(&the_time)); 74 elm_calendar_selected_time_set(cal, gmtime(&the_time));
75 } 75 }
76 break; 76 break;
@@ -81,7 +81,7 @@ set_api_state(api_data *api)
81 time_t sec_per_year = sec_per_day * 365; 81 time_t sec_per_year = sec_per_day * 365;
82 time_t the_time = (sec_per_year * 41) + (sec_per_day * 40); /* Set date to FEB 01, 2011 */ 82 time_t the_time = (sec_per_year * 41) + (sec_per_day * 40); /* Set date to FEB 01, 2011 */
83 elm_calendar_marks_clear(cal); 83 elm_calendar_marks_clear(cal);
84 elm_calendar_select_mode_set(cal, ELM_CALENDAR_SELECT_NONE); 84 elm_calendar_select_mode_set(cal, ELM_CALENDAR_SELECT_MODE_NONE);
85 elm_calendar_selected_time_set(cal, gmtime(&the_time)); 85 elm_calendar_selected_time_set(cal, gmtime(&the_time));
86 } 86 }
87 break; 87 break;
@@ -174,7 +174,7 @@ _print_cal_info(Evas_Object *cal, Evas_Object *en)
174 174
175 interval = elm_calendar_interval_get(cal); 175 interval = elm_calendar_interval_get(cal);
176 elm_calendar_min_max_year_get(cal, &year_min, &year_max); 176 elm_calendar_min_max_year_get(cal, &year_min, &year_max);
177 sel_enabled = !!(elm_calendar_select_mode_get(cal) != ELM_CALENDAR_SELECT_NONE); 177 sel_enabled = !!(elm_calendar_select_mode_get(cal) != ELM_CALENDAR_SELECT_MODE_NONE);
178 wds = elm_calendar_weekdays_names_get(cal); 178 wds = elm_calendar_weekdays_names_get(cal);
179 179
180 snprintf(info, sizeof(info), 180 snprintf(info, sizeof(info),
@@ -241,7 +241,7 @@ test_calendar2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
241 cal2 = elm_calendar_add(win); 241 cal2 = elm_calendar_add(win);
242 evas_object_size_hint_weight_set(cal2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 242 evas_object_size_hint_weight_set(cal2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
243 evas_object_size_hint_align_set(cal2, EVAS_HINT_FILL, EVAS_HINT_FILL); 243 evas_object_size_hint_align_set(cal2, EVAS_HINT_FILL, EVAS_HINT_FILL);
244 elm_calendar_select_mode_set(cal2, ELM_CALENDAR_SELECT_NONE); 244 elm_calendar_select_mode_set(cal2, ELM_CALENDAR_SELECT_MODE_NONE);
245 evas_object_show(cal2); 245 evas_object_show(cal2);
246 elm_box_pack_end(bxh, cal2); 246 elm_box_pack_end(bxh, cal2);
247 247
@@ -322,35 +322,13 @@ test_calendar3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
322 elm_win_resize_object_add(win, bxx); 322 elm_win_resize_object_add(win, bxx);
323 evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 323 evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
324 evas_object_show(bxx); 324 evas_object_show(bxx);
325 /*
326
327 bx = elm_box_add(win);
328 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
329 api->box = bx;
330 evas_object_show(bx);
331
332 bt = elm_button_add(win);
333 elm_object_text_set(bt, "Next API function");
334 evas_object_smart_callback_add(bt, "clicked", _api_bt_clicked, (void *) api);
335 elm_box_pack_end(bxx, bt);
336 elm_object_disabled_set(bt, api->state == API_STATE_LAST);
337 evas_object_show(bt);
338
339 elm_box_pack_end(bxx, bx);
340 */
341 325
342 cal = elm_calendar_add(win); 326 cal = elm_calendar_add(win);
343 elm_calendar_first_day_of_week_set(cal, ELM_DAY_THURSDAY); 327 elm_calendar_first_day_of_week_set(cal, ELM_DAY_THURSDAY);
344 elm_calendar_select_mode_set(cal, ELM_CALENDAR_SELECT_ONDEMAND); 328 elm_calendar_select_mode_set(cal, ELM_CALENDAR_SELECT_MODE_ONDEMAND);
345 evas_object_size_hint_weight_set(cal, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 329 evas_object_size_hint_weight_set(cal, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
346 elm_box_pack_end(bxx, cal); 330 elm_box_pack_end(bxx, cal);
347// 331
348// time_t sec_per_day = (60*60*24);
349// time_t sec_per_year = sec_per_day * 365;
350// time_t the_time = (sec_per_year * 41) + (sec_per_day * 9); /* Set date to DEC 31, 2010 */
351// elm_calendar_selected_time_set(cal, gmtime(&the_time));
352// elm_calendar_min_max_year_set(cal, 2010, 2012);
353//
354 evas_object_show(cal); 332 evas_object_show(cal);
355 333
356 evas_object_show(win); 334 evas_object_show(win);