On Mon, 17 Jan 2011 10:44:51 +0000 (GMT) Jae Hwan Kim
<[email protected]> said:

almost right.. you missed adding it to illme and standard profile configs. i
did that for you. in svn.

> 
> Hello.
> 
> I'm Jaehwan Kim.
> 
> I want to add the environment parameter "ELM_EFFECT_ENABLE".
> It will play a role as the enablement for the effect of all widget.
> 
> The patch is the following.
> 
> Thanks.
> 
> 
> 
> Index: src/lib/elm_config.c
> ===================================================================
> --- src/lib/elm_config.c      (revision 56080)
> +++ src/lib/elm_config.c      (working copy)
> @@ -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
> @@ -1136,6 +1137,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 *
> @@ -1557,6 +1559,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: src/lib/elm_priv.h
> ===================================================================
> --- src/lib/elm_priv.h        (revision 56080)
> +++ src/lib/elm_priv.h        (working copy)
> @@ -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
> Index: config/default/base.src
> ===================================================================
> --- config/default/base.src   (revision 56080)
> +++ config/default/base.src   (working copy)
> @@ -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;
>  }
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand 
> malware threats, the impact they can have on your business, and how you 
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to