From 4c27e0cd6b16b96b51a547fa83400e341f2cae4e Mon Sep 17 00:00:00 2001 From: andrunko Date: Wed, 21 Nov 2007 01:33:50 +0000 Subject: [PATCH] Changed ecore_imf_context_client_window_set to receive an Evas pointer. This would allow applications to create input method plugins with more fancy stuff (like transparency, ...). See http://staff.get-e.org/?p=users/andrunko/ilike-imf-ecore.git;a=summary. SVN revision: 32804 --- legacy/ecore/src/lib/ecore_imf/Ecore_IMF.h | 4 ++-- legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_imf/Ecore_IMF.h b/legacy/ecore/src/lib/ecore_imf/Ecore_IMF.h index e640ef43fc..ac1ea55f61 100644 --- a/legacy/ecore/src/lib/ecore_imf/Ecore_IMF.h +++ b/legacy/ecore/src/lib/ecore_imf/Ecore_IMF.h @@ -92,7 +92,7 @@ extern "C" { { void (*add) (Ecore_IMF_Context *ctx); void (*del) (Ecore_IMF_Context *ctx); - void (*client_window_set) (Ecore_IMF_Context *ctx, void *window); + void (*client_window_set) (Ecore_IMF_Context *ctx, Evas *evas); void (*show) (Ecore_IMF_Context *ctx); void (*hide) (Ecore_IMF_Context *ctx); void (*preedit_string_get) (Ecore_IMF_Context *ctx, char **str, int *cursor_pos); @@ -121,7 +121,7 @@ extern "C" { EAPI Ecore_IMF_Context *ecore_imf_context_add(const char *id); EAPI void ecore_imf_context_del(Ecore_IMF_Context *ctx); - EAPI void ecore_imf_context_client_window_set(Ecore_IMF_Context *ctx, void *window); + EAPI void ecore_imf_context_client_window_set(Ecore_IMF_Context *ctx, Evas *evas); EAPI void ecore_imf_context_show(Ecore_IMF_Context *ctx); EAPI void ecore_imf_context_hide(Ecore_IMF_Context *ctx); EAPI void ecore_imf_context_preedit_string_get(Ecore_IMF_Context *ctx, char **str, int *cursor_pos); 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 11fbcb4f1e..30aa0e572d 100644 --- a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c +++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c @@ -183,7 +183,7 @@ ecore_imf_context_del(Ecore_IMF_Context *ctx) /** * Set the client window for the Input Method Context; this is the - * window returned by ecore_evas_window_get() in which the input appears. + * Evas canvas in which the input appears. * This window is used in order to correctly position status windows, and may * also be used for purposes internal to the Input Method Context. * @@ -193,7 +193,7 @@ ecore_imf_context_del(Ecore_IMF_Context *ctx) * @ingroup Ecore_IMF_Context_Group */ EAPI void -ecore_imf_context_client_window_set(Ecore_IMF_Context *ctx, void *window) +ecore_imf_context_client_window_set(Ecore_IMF_Context *ctx, Evas *evas) { if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) { @@ -201,7 +201,7 @@ ecore_imf_context_client_window_set(Ecore_IMF_Context *ctx, void *window) "ecore_imf_context_client_window_set"); return; } - if (ctx->klass->client_window_set) ctx->klass->client_window_set(ctx, window); + if (ctx->klass->client_window_set) ctx->klass->client_window_set(ctx, evas); } /**