diff --git a/legacy/elementary/AUTHORS b/legacy/elementary/AUTHORS index e1406da2d1..cc75c1711e 100644 --- a/legacy/elementary/AUTHORS +++ b/legacy/elementary/AUTHORS @@ -41,3 +41,4 @@ Govindaraju SM Prince Kumar Dubey Sung W. Park Thierry el Borgi +Shilpa Singh diff --git a/legacy/elementary/config/default/base.src b/legacy/elementary/config/default/base.src index d5f558a67b..eb99ae3e18 100644 --- a/legacy/elementary/config/default/base.src +++ b/legacy/elementary/config/default/base.src @@ -37,4 +37,6 @@ group "Elm_Config" struct { value "longpress_timeout" double: 1.0; value "effect_enable" uchar: 1; value "desktop_entry" uchar: 0; + value "password_show_last" uchar: 0; + value "password_show_last_timeout" double: 2.0; } diff --git a/legacy/elementary/config/standard/base.src b/legacy/elementary/config/standard/base.src index b2284c3d99..f0e85653db 100644 --- a/legacy/elementary/config/standard/base.src +++ b/legacy/elementary/config/standard/base.src @@ -41,4 +41,6 @@ group "Elm_Config" struct { value "longpress_timeout" double: 1.0; value "effect_enable" uchar: 1; value "desktop_entry" uchar: 1; + value "password_show_last" uchar: 0; + value "password_show_last_timeout" double: 2.0; } diff --git a/legacy/elementary/src/lib/elm_config.c b/legacy/elementary/src/lib/elm_config.c index a142ac4834..d7a3f166da 100644 --- a/legacy/elementary/src/lib/elm_config.c +++ b/legacy/elementary/src/lib/elm_config.c @@ -599,6 +599,8 @@ _desc_init(void) ELM_CONFIG_VAL(D, T, longpress_timeout, T_DOUBLE); ELM_CONFIG_VAL(D, T, effect_enable, T_UCHAR); ELM_CONFIG_VAL(D, T, desktop_entry, T_UCHAR); + ELM_CONFIG_VAL(D, T, password_show_last, T_UCHAR); + ELM_CONFIG_VAL(D, T, password_show_last_timeout, T_DOUBLE); #undef T #undef D #undef T_INT @@ -1001,6 +1003,8 @@ _config_sub_apply(void) { edje_frametime_set(1.0 / _elm_config->fps); edje_scale_set(_elm_config->scale); + edje_password_show_last_set(_elm_config->password_show_last); + edje_password_show_last_timeout_set(_elm_config->password_show_last_timeout); if (_elm_config->modules) _elm_module_parse(_elm_config->modules); } @@ -1152,8 +1156,9 @@ _config_load(void) _elm_config->longpress_timeout = 1.0; _elm_config->effect_enable = EINA_TRUE; _elm_config->desktop_entry = EINA_FALSE; - _elm_config->is_mirrored = EINA_FALSE; /* Read sys value in env_get() */ + _elm_config->password_show_last = EINA_FALSE; + _elm_config->password_show_last_timeout = 2.0; } static const char * @@ -1550,6 +1555,17 @@ _env_get(void) s = getenv("ELM_FINGER_SIZE"); if (s) _elm_config->finger_size = atoi(s); + s = getenv("ELM_PASSWORD_SHOW_LAST"); + if (s) _elm_config->password_show_last = !!atoi(s); + + s = getenv("ELM_PASSWORD_SHOW_LAST_TIMEOUT"); + if (s) + { + double pw_show_last_timeout = atof(s); + if (pw_show_last_timeout >= 0.0) + _elm_config->password_show_last_timeout = pw_show_last_timeout; + } + s = getenv("ELM_FPS"); if (s) _elm_config->fps = atof(s); if (_elm_config->fps < 1.0) _elm_config->fps = 1.0; diff --git a/legacy/elementary/src/lib/elm_priv.h b/legacy/elementary/src/lib/elm_priv.h index 05d1503214..e64e64578c 100644 --- a/legacy/elementary/src/lib/elm_priv.h +++ b/legacy/elementary/src/lib/elm_priv.h @@ -127,8 +127,9 @@ struct _Elm_Config double longpress_timeout; unsigned char effect_enable; unsigned char desktop_entry; - Eina_Bool is_mirrored : 1; + Eina_Bool password_show_last; + double password_show_last_timeout; }; struct _Elm_Module