From 97c0e0b5d3f56299d45bb9bc8ec1f6d4e6da05a1 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Thu, 24 Apr 2008 15:28:53 +0000 Subject: [PATCH] ecore_imf: if ECORE_IMF_MODULE is set to "none", don't use any IMF module Patch by andrunko. SVN revision: 34361 --- legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c index 7f23c9e1f9..88087a0fda 100644 --- a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c +++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c @@ -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;