Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/text_editor Modified Files: ewl_text_editor.c Log Message: - convert EWL to use the DejaVu fonts instead of Vera - make the font key EWL uses a generic ewl/default instead of a specific font name like 'Vera' =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text_editor/ewl_text_editor.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_text_editor.c 17 Oct 2006 05:37:33 -0000 1.2 +++ ewl_text_editor.c 16 Nov 2006 15:44:39 -0000 1.3 @@ -367,19 +367,19 @@ of = ewl_text_font_get(EWL_TEXT(t), ewl_text_cursor_position_get(EWL_TEXT(t))); - if (!strcmp(of, "Vera/Bold-Italic")) + if (!strcmp(of, "ewl/default/bold-italic")) { - if (!strcmp(font, "Vera/Bold")) - font = "Vera/Italic"; - else if (!strcmp(font, "Vera/Italic")) - font = "Vera/Bold"; + if (!strcmp(font, "ewl/default/bold")) + font = "ewl/default/italic"; + else if (!strcmp(font, "ewl/default/italic")) + font = "ewl/default/bold"; } - else if ((!strcmp(of, "Vera/Italic") && !strcmp(font, "Vera/Bold")) - || ((!strcmp(of, "Vera/Bold") && (!strcmp(font, "Vera/Italic"))))) - font = "Vera/Bold-Italic"; + else if ((!strcmp(of, "ewl/default/italic") && !strcmp(font, "ewl/default/bold")) + || ((!strcmp(of, "ewl/default/bold") && (!strcmp(font, "ewl/default/italic"))))) + font = "ewl/default/bold-italic"; else if (!strcmp(of, font)) - font = "Vera"; + font = "ewl/default"; if (ewl_text_has_selection(t)) { @@ -405,14 +405,14 @@ ete_cb_bold(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, void *data __UNUSED__) { - ete_font_apply("Vera/Bold"); + ete_font_apply("ewl/default/bold"); } static void ete_cb_italic(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, void *data __UNUSED__) { - ete_font_apply("Vera/Italic"); + ete_font_apply("ewl/default/italic"); } static void ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs