diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-03-02 10:46:38 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-03-02 10:46:38 -0500 |
commit | ae9670c137fc813d9c18b768642e6e4c4e056416 (patch) | |
tree | 75970ea28cfcb7ae6a20f19cd043e4465c0d70a4 /src/lib/ecore_imf/ecore_imf_context.c | |
parent | 356ed88525c73d13533c3335b07ff4cb2a2fa71a (diff) |
ecore-imf: Add check for environment variable to enable show/hide of input panel
Summary: Allow ecore_imf input panel to be shown/hidden via the master
'enabled' switch or via an environment variable. This is required for
Tizen in order that 3rd party apps can still show input_panel even if
master switch is disabled (as per discussion with Carsten).
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf_context.c')
-rw-r--r-- | src/lib/ecore_imf/ecore_imf_context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c index b7142b19f4..6289117ec1 100644 --- a/src/lib/ecore_imf/ecore_imf_context.c +++ b/src/lib/ecore_imf/ecore_imf_context.c | |||
@@ -878,7 +878,8 @@ ecore_imf_context_input_panel_show(Ecore_IMF_Context *ctx) | |||
878 | } | 878 | } |
879 | 879 | ||
880 | show_req_ctx = ctx; | 880 | show_req_ctx = ctx; |
881 | if (ctx->input_panel_enabled) | 881 | if ((ctx->input_panel_enabled) || |
882 | (getenv("ECORE_IMF_INPUT_PANEL_ENABLED"))) | ||
882 | { | 883 | { |
883 | if (ctx->klass->show) ctx->klass->show(ctx); | 884 | if (ctx->klass->show) ctx->klass->show(ctx); |
884 | } | 885 | } |
@@ -894,7 +895,8 @@ ecore_imf_context_input_panel_hide(Ecore_IMF_Context *ctx) | |||
894 | return; | 895 | return; |
895 | } | 896 | } |
896 | 897 | ||
897 | if (ctx->input_panel_enabled) | 898 | if ((ctx->input_panel_enabled) || |
899 | (getenv("ECORE_IMF_INPUT_PANEL_ENABLED"))) | ||
898 | { | 900 | { |
899 | if (ctx->klass->hide) ctx->klass->hide(ctx); | 901 | if (ctx->klass->hide) ctx->klass->hide(ctx); |
900 | } | 902 | } |