Enlightenment CVS committal

Author  : rephorm
Project : misc
Module  : eplayer

Dir     : misc/eplayer/src


Modified Files:
        interface.c 


Log Message:

allow fonts in ~/.e/apps/eplayer/fonts

===================================================================
RCS file: /cvsroot/enlightenment/misc/eplayer/src/interface.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- interface.c 16 Jan 2004 03:12:23 -0000      1.31
+++ interface.c 16 Jan 2004 03:55:55 -0000      1.32
@@ -51,6 +51,7 @@
 
 int ui_init(ePlayer *player) {
        int zero = 0;
+       char buf[PATH_MAX];
        
        debug(DEBUG_LEVEL_INFO, "Starting setup\n");
 
@@ -91,6 +92,11 @@
        ecore_evas_show(player->gui.ee);
 
        player->gui.evas = ecore_evas_get(player->gui.ee);
+
+       snprintf(buf, sizeof(buf),
+                "%s/.e/apps/" PACKAGE "/" "fonts/\0",
+                getenv("HOME"));
+       evas_font_path_append(player->gui.evas, buf);
        evas_font_path_append(player->gui.evas, DATA_DIR "/fonts");
 
        if (!ui_init_edje(player, "eplayer"))




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to