From 82934d13539e609440b539454c31adf83e6253b5 Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 31 Jan 2011 08:18:58 +0000 Subject: [PATCH] From: Jae Hwan Kim 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. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@56572 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- config/default/base.src | 1 + config/illume/base.src | 1 + config/standard/base.src | 1 + src/lib/elm_config.c | 5 +++++ src/lib/elm_priv.h | 1 + 5 files changed, 9 insertions(+) diff --git a/config/default/base.src b/config/default/base.src index 5bc2be3..2d64f64 100644 --- a/config/default/base.src +++ b/config/default/base.src @@ -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; } diff --git a/config/illume/base.src b/config/illume/base.src index 5bc2be3..2d64f64 100644 --- a/config/illume/base.src +++ b/config/illume/base.src @@ -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; } diff --git a/config/standard/base.src b/config/standard/base.src index 142e0e7..359266b 100644 --- a/config/standard/base.src +++ b/config/standard/base.src @@ -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; } diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index f0b006e..0371b18 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -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 diff --git a/src/lib/elm_priv.h b/src/lib/elm_priv.h index 90686c9..57319b8 100644 --- a/src/lib/elm_priv.h +++ b/src/lib/elm_priv.h @@ -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 -- 2.7.4