in svn, with minor modifications.
2009/10/27 Manio <manio@...>:
> sorry - forgot to attach patch :)
>
> regards,
> manio
>
> Index: e_int_config_dpms.c
> ===================================================================
> --- e_int_config_dpms.c (revision 43306)
> +++ e_int_config_dpms.c (working copy)
> @@ -127,6 +127,16 @@
> cfdata->off_timeout = e_config->dpms_off_timeout / 60;
> }
>
> +static void
> +_list_disabled_state_set(Eina_List *list, Evas_Object *obj)
> +{
> + Eina_List *l;
> + Evas_Object *o;
> +
> + EINA_LIST_FOREACH(list, l, o)
> + e_widget_disabled_set(o, !e_widget_check_checked_get(obj));
> +}
> +
> static void *
> _create_data(E_Config_Dialog *cfd)
> {
> @@ -239,6 +249,8 @@
>
> // handler for enable/disable widget array
> e_widget_on_change_hook_set(dpms_check, _cb_disable_check_list,
> cfdata->dpms_list);
> + // setting initial state
> + _list_disabled_state_set(cfdata->dpms_list, dpms_check);
>
> e_widget_list_object_append(o, of, 1, 1, 0.5);
> return o;
> @@ -320,10 +332,5 @@
> static void
> _cb_disable_check_list(void *data, Evas_Object *obj)
> {
> - Eina_List *list = (Eina_List*) data;
> - Eina_List *l;
> - Evas_Object *o;
> -
> - EINA_LIST_FOREACH(list, l, o)
> - e_widget_disabled_set(o, !e_widget_check_checked_get(obj));
> + _list_disabled_state_set((Eina_List*) data, obj);
> }
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@...
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>
--
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbieri@...
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
|