From: Jae Hwan Kim <jae.hwan.kim@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 31 Jan 2011 08:18:58 +0000 (08:18 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 31 Jan 2011 08:18:58 +0000 (08:18 +0000)
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: https://svn.enlightenment.org/svn/e/trunk/elementary@56572 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

config/default/base.src
config/illume/base.src
config/standard/base.src
src/lib/elm_config.c
src/lib/elm_priv.h

index 5bc2be3..2d64f64 100644 (file)
@@ -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;
 }
index 5bc2be3..2d64f64 100644 (file)
@@ -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;
 }
index 142e0e7..359266b 100644 (file)
@@ -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;
 }
index f0b006e..0371b18 100644 (file)
@@ -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
index 90686c9..57319b8 100644 (file)
@@ -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