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

Patch by andrunko.


SVN revision: 34361
This commit is contained in:
Caio Marcelo de Oliveira Filho 2008-04-24 15:28:53 +00:00
parent 3938160157
commit 97c0e0b5d3
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ ecore_imf_context_default_id_by_canvas_type_get(const char *canvas_type)
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;