From 8431f2d80e69bddefc7272ddd0a1da934ec488a8 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 7 Mar 2012 12:03:13 +0000 Subject: [PATCH] aaah bugger - i was wrong. 0 is sn, not mon. fix. now days start on monday.. how it SHOULD be.. thats why we call it a weekEND.. it happens at the.. END of a week... :S SVN revision: 68933 --- config/default/base.src | 4 ++-- config/illume/base.src | 4 ++-- config/standard/base.src | 2 +- src/bin/test_dayselector.c | 8 ++++++++ src/lib/elm_config.c | 4 ++-- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/config/default/base.src b/config/default/base.src index 01b7b15..9566dc0 100644 --- a/config/default/base.src +++ b/config/default/base.src @@ -56,7 +56,7 @@ group "Elm_Config" struct { 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; } diff --git a/config/illume/base.src b/config/illume/base.src index 4292861..433c7cf 100644 --- a/config/illume/base.src +++ b/config/illume/base.src @@ -56,7 +56,7 @@ group "Elm_Config" struct { 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; } diff --git a/config/standard/base.src b/config/standard/base.src index 57b4237..159d792 100644 --- a/config/standard/base.src +++ b/config/standard/base.src @@ -56,7 +56,7 @@ group "Elm_Config" struct { 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; } diff --git a/src/bin/test_dayselector.c b/src/bin/test_dayselector.c index 1ec3b4c..330d569 100644 --- a/src/bin/test_dayselector.c +++ b/src/bin/test_dayselector.c @@ -61,6 +61,14 @@ test_dayselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event 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); diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index ffaf401..9c90467 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -908,8 +908,8 @@ _config_load(void) _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; } -- 2.7.4