forked from enlightenment/efl
elementary : Password's last char show feature can be shown by setting
envs (or modifiying base.src). This patch is made by Shilpa :) SVN revision: 60859
This commit is contained in:
parent
b68467112b
commit
48934aeece
|
@ -41,3 +41,4 @@ Govindaraju SM <govi.sm@samsung.com> <govism@gmail.com>
|
||||||
Prince Kumar Dubey <prince.dubey@samsung.com> <prince.dubey@gmail.com>
|
Prince Kumar Dubey <prince.dubey@samsung.com> <prince.dubey@gmail.com>
|
||||||
Sung W. Park <sungwoo@gmail.com>
|
Sung W. Park <sungwoo@gmail.com>
|
||||||
Thierry el Borgi <thierry@substantiel.fr>
|
Thierry el Borgi <thierry@substantiel.fr>
|
||||||
|
Shilpa Singh <shilpa.singh@samsung.com> <shilpasingh.o@gmail.com>
|
||||||
|
|
|
@ -37,4 +37,6 @@ group "Elm_Config" struct {
|
||||||
value "longpress_timeout" double: 1.0;
|
value "longpress_timeout" double: 1.0;
|
||||||
value "effect_enable" uchar: 1;
|
value "effect_enable" uchar: 1;
|
||||||
value "desktop_entry" uchar: 0;
|
value "desktop_entry" uchar: 0;
|
||||||
|
value "password_show_last" uchar: 0;
|
||||||
|
value "password_show_last_timeout" double: 2.0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,4 +41,6 @@ group "Elm_Config" struct {
|
||||||
value "longpress_timeout" double: 1.0;
|
value "longpress_timeout" double: 1.0;
|
||||||
value "effect_enable" uchar: 1;
|
value "effect_enable" uchar: 1;
|
||||||
value "desktop_entry" uchar: 1;
|
value "desktop_entry" uchar: 1;
|
||||||
|
value "password_show_last" uchar: 0;
|
||||||
|
value "password_show_last_timeout" double: 2.0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -599,6 +599,8 @@ _desc_init(void)
|
||||||
ELM_CONFIG_VAL(D, T, longpress_timeout, T_DOUBLE);
|
ELM_CONFIG_VAL(D, T, longpress_timeout, T_DOUBLE);
|
||||||
ELM_CONFIG_VAL(D, T, effect_enable, T_UCHAR);
|
ELM_CONFIG_VAL(D, T, effect_enable, T_UCHAR);
|
||||||
ELM_CONFIG_VAL(D, T, desktop_entry, 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 T
|
||||||
#undef D
|
#undef D
|
||||||
#undef T_INT
|
#undef T_INT
|
||||||
|
@ -1001,6 +1003,8 @@ _config_sub_apply(void)
|
||||||
{
|
{
|
||||||
edje_frametime_set(1.0 / _elm_config->fps);
|
edje_frametime_set(1.0 / _elm_config->fps);
|
||||||
edje_scale_set(_elm_config->scale);
|
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);
|
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->longpress_timeout = 1.0;
|
||||||
_elm_config->effect_enable = EINA_TRUE;
|
_elm_config->effect_enable = EINA_TRUE;
|
||||||
_elm_config->desktop_entry = EINA_FALSE;
|
_elm_config->desktop_entry = EINA_FALSE;
|
||||||
|
|
||||||
_elm_config->is_mirrored = EINA_FALSE; /* Read sys value in env_get() */
|
_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 *
|
static const char *
|
||||||
|
@ -1550,6 +1555,17 @@ _env_get(void)
|
||||||
s = getenv("ELM_FINGER_SIZE");
|
s = getenv("ELM_FINGER_SIZE");
|
||||||
if (s) _elm_config->finger_size = atoi(s);
|
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");
|
s = getenv("ELM_FPS");
|
||||||
if (s) _elm_config->fps = atof(s);
|
if (s) _elm_config->fps = atof(s);
|
||||||
if (_elm_config->fps < 1.0) _elm_config->fps = 1.0;
|
if (_elm_config->fps < 1.0) _elm_config->fps = 1.0;
|
||||||
|
|
|
@ -127,8 +127,9 @@ struct _Elm_Config
|
||||||
double longpress_timeout;
|
double longpress_timeout;
|
||||||
unsigned char effect_enable;
|
unsigned char effect_enable;
|
||||||
unsigned char desktop_entry;
|
unsigned char desktop_entry;
|
||||||
|
|
||||||
Eina_Bool is_mirrored : 1;
|
Eina_Bool is_mirrored : 1;
|
||||||
|
Eina_Bool password_show_last;
|
||||||
|
double password_show_last_timeout;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _Elm_Module
|
struct _Elm_Module
|
||||||
|
|
Loading…
Reference in New Issue