Enlightenment CVS committal
Author : stffrdhrn
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_int_config_hinting.c
Log Message:
When options arent available disable them, don't just hide them. This is needed
if the configured item is one which is disabled. otherwise you cant select the
other options.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_hinting.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_int_config_hinting.c 1 Mar 2006 03:47:51 -0000 1.5
+++ e_int_config_hinting.c 2 Mar 2006 12:01:21 -0000 1.6
@@ -84,23 +84,25 @@
/* generate the core widget layout for a basic dialog */
Evas_Object *o, *ob;
E_Radio_Group *rg;
+ int option_enable;
o = e_widget_list_add(evas, 0, 0);
rg = e_widget_radio_group_new(&(cfdata->hinting));
- if (evas_font_hinting_can_hint(evas, EVAS_FONT_HINTING_BYTECODE))
- {
- ob = e_widget_radio_add(evas, _("Bytecode Hinting"), 0, rg);
- e_widget_list_object_append(o, ob, 1, 1, 0.5);
- }
- if (evas_font_hinting_can_hint(evas, EVAS_FONT_HINTING_AUTO))
- {
- ob = e_widget_radio_add(evas, _("Automatic Hinting"), 1, rg);
- e_widget_list_object_append(o, ob, 1, 1, 0.5);
- }
- if (evas_font_hinting_can_hint(evas, EVAS_FONT_HINTING_NONE))
- {
- ob = e_widget_radio_add(evas, _("No Hinting"), 2, rg);
- e_widget_list_object_append(o, ob, 1, 1, 0.5);
- }
+
+ option_enable = evas_font_hinting_can_hint(evas,
EVAS_FONT_HINTING_BYTECODE);
+ ob = e_widget_radio_add(evas, _("Bytecode Hinting"), 0, rg);
+ e_widget_disabled_set(ob, !option_enable);
+ e_widget_list_object_append(o, ob, 1, 1, 0.5);
+
+ option_enable = evas_font_hinting_can_hint(evas, EVAS_FONT_HINTING_AUTO);
+ ob = e_widget_radio_add(evas, _("Automatic Hinting"), 1, rg);
+ e_widget_disabled_set(ob, !option_enable);
+ e_widget_list_object_append(o, ob, 1, 1, 0.5);
+
+ option_enable = evas_font_hinting_can_hint(evas, EVAS_FONT_HINTING_NONE);
+ ob = e_widget_radio_add(evas, _("No Hinting"), 2, rg);
+ e_widget_disabled_set(ob, !option_enable);
+ e_widget_list_object_append(o, ob, 1, 1, 0.5);
+
return o;
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs