Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_icon_theme.c ewl_io_manager.c 


Log Message:
- add io manager from pfritz to syntax highlight c source files

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_icon_theme.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_icon_theme.c    30 Sep 2006 22:31:36 -0000      1.8
+++ ewl_icon_theme.c    4 Oct 2006 15:42:55 -0000       1.9
@@ -110,7 +110,7 @@
        else
                icon_size = size;
 
-       snprintf(key, sizeof(key), "[EMAIL PROTECTED]", icon, size);
+       snprintf(key, sizeof(key), "[EMAIL PROTECTED]", icon, icon_size);
        ret = ecore_hash_get(ewl_icon_theme_cache, key);
        if (!ret)
        {
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_io_manager.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_io_manager.c    14 Sep 2006 15:10:24 -0000      1.3
+++ ewl_io_manager.c    4 Oct 2006 15:42:55 -0000       1.4
@@ -149,10 +149,14 @@
        ptr = strrchr(uri, '.');
        if (!ptr) DRETURN_PTR(NULL, DLEVEL_STABLE);
 
-       if (!strcasecmp(ptr, ".txt") || !strcasecmp(ptr, ".c") 
-                       || !strcasecmp(ptr, ".h"))
+       if (!strcasecmp(ptr, ".txt")) 
        {
                DRETURN_PTR("text/plain", DLEVEL_STABLE);
+       }
+       if (!strcasecmp(ptr, ".c") || !strcasecmp(ptr, ".h")
+               || !strcasecmp(ptr, ".cpp"))
+       {
+               DRETURN_PTR("text/c", DLEVEL_STABLE);
        }
        else if (!strcasecmp(ptr, ".rtf"))
        {



-------------------------------------------------------------------------
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

Reply via email to