I DID NOT READ THIS COMMIT.

Daniel Juyung Seo (SeoZ)

On Fri, Dec 21, 2012 at 9:04 PM, Enlightenment SVN <
[email protected]> wrote:

> Log:
> sooooo translators will hate me for this but I had to change another
> string here since it was 100% wrong. sorry.
>   this commit disables all the other widgets in xsettings config if
> "enable xsettings" is not checked, since this is what the result of
> disabling xsettings will be
>
>
> Author:       discomfitor
> Date:         2012-12-21 04:04:10 -0800 (Fri, 21 Dec 2012)
> New Revision: 81542
> Trac:         http://trac.enlightenment.org/e/changeset/81542
>
> Modified:
>   trunk/e/src/modules/conf_theme/e_int_config_xsettings.c
>
> Modified: trunk/e/src/modules/conf_theme/e_int_config_xsettings.c
> ===================================================================
> --- trunk/e/src/modules/conf_theme/e_int_config_xsettings.c     2012-12-21
> 12:03:11 UTC (rev 81541)
> +++ trunk/e/src/modules/conf_theme/e_int_config_xsettings.c     2012-12-21
> 12:04:10 UTC (rev 81542)
> @@ -24,8 +24,11 @@
>     struct
>     {
>        Evas_Object *widget_list;
> +      Evas_Object *match_theme;
>        Evas_Object *icon_list;
>        Evas_Object *icon_preview[4];   /* same size as _icon_previews */
> +      Evas_Object *icon_enable_apps;
> +      Evas_Object *icon_enable_enlightenment;
>     } gui;
>     Ecore_Idler     *fill_icon_themes_delayed;
>  };
> @@ -61,6 +64,20 @@
>     return cfd;
>  }
>
> +static void
> +_settings_changed(void *data, Evas_Object *obj EINA_UNUSED)
> +{
> +   E_Config_Dialog_Data *cfdata = data;
> +   Eina_Bool disable;
> +
> +   disable = !cfdata->enable_xsettings;
> +   e_widget_disabled_set(cfdata->gui.icon_enable_apps, disable);
> +   e_widget_disabled_set(cfdata->gui.icon_enable_enlightenment, disable);
> +   e_widget_disabled_set(cfdata->gui.match_theme, disable);
> +   e_widget_disabled_set(cfdata->gui.widget_list, disable);
> +   e_widget_disabled_set(cfdata->gui.icon_list, disable);
> +}
> +
>  static void *
>  _create_data(E_Config_Dialog *cfd)
>  {
> @@ -468,7 +485,7 @@
>      *                        &(cfdata->match_e17_icon_theme));
>      * e_widget_list_object_append(ol, ow, 0, 0, 0.0); */
>
> -   ow = e_widget_check_add(evas, _("Match Enlightenment theme if
> possible"),
> +   cfdata->gui.match_theme = ow = e_widget_check_add(evas, _("Match
> Enlightenment theme if possible"),
>                             &(cfdata->match_e17_theme));
>     e_widget_list_object_append(ol, ow, 0, 0, 0.0);
>
> @@ -477,9 +494,9 @@
>      * e_widget_list_object_append(o, ow, 0, 0, 0.0); */
>
>     // >> advanced
> -   ow = e_widget_check_add(evas, _("Enable Settings Daemon"),
> +   ow = e_widget_check_add(evas, _("Enable X Application Settings"),
>                             &(cfdata->enable_xsettings));
> -   /* e_widget_on_change_hook_set(ow, _settings_changed, cfdata); */
> +   e_widget_on_change_hook_set(ow, _settings_changed, cfdata);
>     e_widget_list_object_append(ol, ow, 0, 0, 0.0);
>     e_widget_toolbook_page_append(otb, NULL, _("GTK Applications"), ol,
>                                   1, 1, 1, 1, 0.5, 0.0);
> @@ -512,11 +529,11 @@
>      * e_widget_on_change_hook_set(ow, _icon_theme_changed, cfdata);
>      * e_widget_list_object_append(ol, ow, 0, 0, 0.0); */
>
> -   ow = e_widget_check_add(evas, _("Enable icon theme for applications"),
> +   cfdata->gui.icon_enable_apps = ow = e_widget_check_add(evas, _("Enable
> icon theme for applications"),
>                             &(cfdata->match_e17_icon_theme));
>     e_widget_list_object_append(ol, ow, 0, 0, 0.0);
>
> -   ow = e_widget_check_add(evas, _("Enable icon theme for Enlightenment"),
> +   cfdata->gui.icon_enable_enlightenment = ow = e_widget_check_add(evas,
> _("Enable icon theme for Enlightenment"),
>                             &(cfdata->icon_overrides));
>     e_widget_list_object_append(ol, ow, 0, 0, 0.0);
>
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to