value "glayer_flick_time_limit_ms" uint: 120; /* ms to finish flick */
value "glayer_long_tap_start_timeout" double: 1.2; /* sec to start long-tap */
value "glayer_continues_enable" uchar: 1; /* Continues gesture enabled */
- value "week_start" int: 0;
- value "weekend_start" int: 5;
+ value "week_start" int: 1;
+ value "weekend_start" int: 6;
value "weekend_len" int: 2;
}
value "glayer_flick_time_limit_ms" uint: 100; /* ms to finish flick */
value "glayer_long_tap_start_timeout" double: 1.2; /* sec to start long-tap */
value "glayer_continues_enable" uchar: 1; /* Continues gesture enabled */
- value "week_start" int: 0;
- value "weekend_start" int: 5;
+ value "week_start" int: 1;
+ value "weekend_start" int: 6;
value "weekend_len" int: 2;
}
value "glayer_flick_time_limit_ms" uint: 120; /* ms to finish flick */
value "glayer_long_tap_start_timeout" double: 1.2; /* sec to start long-tap */
value "glayer_continues_enable" uchar: 1; /* Continues gesture enabled */
- value "week_start" int: 0;
+ value "week_start" int: 1;
value "weekend_start" int: 6;
value "weekend_len" int: 2;
}
evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(bx);
+ // Default
+ dayselector = elm_dayselector_add(win);
+ evas_object_size_hint_weight_set(dayselector, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(dayselector, EVAS_HINT_FILL, 0.5);
+ elm_box_pack_end(bx, dayselector);
+ evas_object_show(dayselector);
+ evas_object_smart_callback_add(dayselector, "dayselector,changed", _changed_cb, NULL);
+
//Sunday first
dayselector = elm_dayselector_add(win);
evas_object_size_hint_weight_set(dayselector, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
_elm_config->glayer_flick_time_limit_ms = 120; /* ms to finish flick */
_elm_config->glayer_long_tap_start_timeout = 1.2; /* 1.2 second to start long-tap */
_elm_config->glayer_continues_enable = EINA_TRUE; /* Continue gestures default */
- _elm_config->week_start = 0;
- _elm_config->weekend_start = 6;
+ _elm_config->week_start = 1; /* monday */
+ _elm_config->weekend_start = 6; /* saturday */
_elm_config->weekend_len = 2;
}