forked from enlightenment/efl
From: Jae Hwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] environment parameter - ELM_EFFECT_ENABLE I want to add the environment parameter "ELM_EFFECT_ENABLE". It will play a role as the enablement for the effect of all widget. SVN revision: 56572
This commit is contained in:
parent
da9df5693a
commit
efaf969d30
|
@ -34,4 +34,5 @@ group "Elm_Config" struct {
|
|||
value "inwin_dialogs_enable" uchar: 1;
|
||||
value "icon_size" int: 32;
|
||||
value "longpress_timeout" double: 1.0;
|
||||
value "effect_enable" uchar: 1;
|
||||
}
|
||||
|
|
|
@ -34,4 +34,5 @@ group "Elm_Config" struct {
|
|||
value "inwin_dialogs_enable" uchar: 1;
|
||||
value "icon_size" int: 32;
|
||||
value "longpress_timeout" double: 1.0;
|
||||
value "effect_enable" uchar: 1;
|
||||
}
|
||||
|
|
|
@ -34,4 +34,5 @@ group "Elm_Config" struct {
|
|||
value "inwin_dialogs_enable" uchar: 0;
|
||||
value "icon_size" int: 32;
|
||||
value "longpress_timeout" double: 1.0;
|
||||
value "effect_enable" uchar: 1;
|
||||
}
|
||||
|
|
|
@ -597,6 +597,7 @@ _desc_init(void)
|
|||
ELM_CONFIG_VAL(D, T, inwin_dialogs_enable, T_UCHAR);
|
||||
ELM_CONFIG_VAL(D, T, icon_size, T_INT);
|
||||
ELM_CONFIG_VAL(D, T, longpress_timeout, T_DOUBLE);
|
||||
ELM_CONFIG_VAL(D, T, effect_enable, T_UCHAR);
|
||||
#undef T
|
||||
#undef D
|
||||
#undef T_INT
|
||||
|
@ -1139,6 +1140,7 @@ _config_load(void)
|
|||
_elm_config->inwin_dialogs_enable = EINA_FALSE;
|
||||
_elm_config->icon_size = 32;
|
||||
_elm_config->longpress_timeout = 1.0;
|
||||
_elm_config->effect_enable = EINA_TRUE;
|
||||
}
|
||||
|
||||
static const char *
|
||||
|
@ -1560,6 +1562,9 @@ _env_get(void)
|
|||
if (s) _elm_config->longpress_timeout = atof(s);
|
||||
if (_elm_config->longpress_timeout < 0.0)
|
||||
_elm_config->longpress_timeout = 0.0;
|
||||
|
||||
s = getenv("ELM_EFFECT_ENABLE");
|
||||
if (s) _elm_config->effect_enable = !!atoi(s);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -111,6 +111,7 @@ struct _Elm_Config
|
|||
Eina_Bool inwin_dialogs_enable;
|
||||
int icon_size;
|
||||
double longpress_timeout;
|
||||
Eina_Bool effect_enable;
|
||||
};
|
||||
|
||||
struct _Elm_Module
|
||||
|
|
Loading…
Reference in New Issue