Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_canvas.c e_config.c e_int_config_hinting.c 


Log Message:


update hinting api - fix config dialog
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_canvas.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_canvas.c  23 Jan 2006 15:53:54 -0000      1.11
+++ e_canvas.c  28 Feb 2006 04:07:28 -0000      1.12
@@ -15,13 +15,19 @@
 e_canvas_add(Ecore_Evas *ee)
 {
    Evas *e;
-
    
    _e_canvases = evas_list_prepend(_e_canvases, ee);
    e = ecore_evas_get(ee);
    evas_image_cache_set(e, e_config->image_cache * 1024);
    evas_font_cache_set(e, e_config->font_cache * 1024);
    e_path_evas_append(path_fonts, e);
+   if (e_config->font_hinting == 0)
+     evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE);
+   else if (e_config->font_hinting == 1)
+     evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
+   else if (e_config->font_hinting == 2)
+     evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
+   
 //   evas_image_cache_flush(e);
 //   evas_image_cache_reload(e);
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -3 -r1.148 -r1.149
--- e_config.c  27 Feb 2006 15:18:10 -0000      1.148
+++ e_config.c  28 Feb 2006 04:07:28 -0000      1.149
@@ -1674,13 +1674,6 @@
    E_CONFIG_LIMIT(e_config->cfgdlg_default_mode, 0, 1);
    E_CONFIG_LIMIT(e_config->font_hinting, 0, 2);
    
-   if (e_config->font_hinting == 0)
-     evas_imaging_font_hinting_set(EVAS_FONT_HINTING_BYTECODE);
-   else if (e_config->font_hinting == 1)
-     evas_imaging_font_hinting_set(EVAS_FONT_HINTING_AUTO);
-   else if (e_config->font_hinting == 2)
-     evas_imaging_font_hinting_set(EVAS_FONT_HINTING_NONE);
-   
    return 1;
 }
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_hinting.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_int_config_hinting.c      27 Feb 2006 20:10:39 -0000      1.3
+++ e_int_config_hinting.c      28 Feb 2006 04:07:28 -0000      1.4
@@ -86,19 +86,19 @@
       
    o = e_widget_list_add(evas, 0, 0);
    rg = e_widget_radio_group_new(&(cfdata->hinting));
-   if (evas_imaging_font_hinting_can_hint(EVAS_FONT_HINTING_BYTECODE))
+   if (evas_font_hinting_can_hint(evas, EVAS_FONT_HINTING_BYTECODE))
      {
-       ob = e_widget_radio_add(evas, _("Bytecode Hinting"), 
EVAS_FONT_HINTING_BYTECODE, rg);
+       ob = e_widget_radio_add(evas, _("Bytecode Hinting"), 0, rg);
        e_widget_list_object_append(o, ob, 1, 1, 0.5);
      }
-   if (evas_imaging_font_hinting_can_hint(EVAS_FONT_HINTING_AUTO))
+   if (evas_font_hinting_can_hint(evas, EVAS_FONT_HINTING_AUTO))
      {
-       ob = e_widget_radio_add(evas, _("Automatic Hinting"), 
EVAS_FONT_HINTING_AUTO, rg);
+       ob = e_widget_radio_add(evas, _("Automatic Hinting"), 1, rg);
        e_widget_list_object_append(o, ob, 1, 1, 0.5);
      }
-   if (evas_imaging_font_hinting_can_hint(EVAS_FONT_HINTING_NONE))
+   if (evas_font_hinting_can_hint(evas, EVAS_FONT_HINTING_NONE))
      {
-       ob = e_widget_radio_add(evas, _("No Hinting"), EVAS_FONT_HINTING_NONE, 
rg);
+       ob = e_widget_radio_add(evas, _("No Hinting"), 2, rg);
        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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to