Enlightenment CVS committal

Author  : cmarcelo
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_imf


Modified Files:
        ecore_imf_context.c 


Log Message:
ecore_imf: if ECORE_IMF_MODULE is set to "none", don't use any IMF module

Patch by andrunko.



===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_imf/ecore_imf_context.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore_imf_context.c 12 Dec 2007 19:00:48 -0000      1.6
+++ ecore_imf_context.c 24 Apr 2008 15:28:53 -0000      1.7
@@ -89,7 +89,11 @@
    int best_goodness = 0;
 
    id = getenv("ECORE_IMF_MODULE");
-   if (id && ecore_imf_module_get(id)) return id;
+   if (id)
+     {
+       if (strcmp(id, "none") == 0) return NULL;
+       if (ecore_imf_module_get(id)) return id;
+     }
 
    modules = ecore_imf_module_available_get();
    if (!modules) return NULL;



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to