From 05e3d9e592ee0e9ddb24b62590a3bd0feff19068 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 26 Jan 2012 15:21:53 +0900 Subject: [PATCH] Deprecated ecore_imf_context_input_panel_move API Change-Id: I1936b142ee3858c12eceeba575618b08ee461319 --- src/lib/ecore_imf/Ecore_IMF.h | 2 +- src/lib/ecore_imf/ecore_imf_context.c | 15 ++------------- src/lib/ecore_imf/ecore_imf_private.h | 2 -- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/lib/ecore_imf/Ecore_IMF.h b/src/lib/ecore_imf/Ecore_IMF.h index e9e05df..fc9694a 100644 --- a/src/lib/ecore_imf/Ecore_IMF.h +++ b/src/lib/ecore_imf/Ecore_IMF.h @@ -469,7 +469,7 @@ EAPI void ecore_imf_context_input_panel_event_callback_ EAPI void ecore_imf_context_input_panel_event_callback_del(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Event type, void (*func) (void *data, Ecore_IMF_Context *ctx, int value)); EAPI void ecore_imf_context_input_panel_key_disabled_set(Ecore_IMF_Context *ctx, int layout_index, int key_index, Eina_Bool disabled); EAPI Eina_List *ecore_imf_context_input_panel_key_disabled_list_get(Ecore_IMF_Context *ctx); -EAPI void ecore_imf_context_input_panel_move(Ecore_IMF_Context *ctx, int x, int y); +EINA_DEPRECATED EAPI void ecore_imf_context_input_panel_move(Ecore_IMF_Context *ctx, int x, int y); /* The following entry points must be exported by each input method module */ diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c index a2e796b..eb06f83 100644 --- a/src/lib/ecore_imf/ecore_imf_context.c +++ b/src/lib/ecore_imf/ecore_imf_context.c @@ -778,8 +778,6 @@ ecore_imf_context_new(const Ecore_IMF_Context_Class *ctxc) ctx->data = NULL; ctx->retrieve_surrounding_func = NULL; ctx->retrieve_surrounding_data = NULL; - ctx->input_panel_x = 0; - ctx->input_panel_y = 0; ctx->input_panel_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL; ctx->callbacks = NULL; @@ -1584,18 +1582,9 @@ ecore_imf_context_input_panel_event_callback_del (Ecore_IMF_Context *ctx, * @ingroup Ecore_IMF_Context_IMControl_Group * @since 1.1.0 */ -EAPI void +EINA_DEPRECATED EAPI void ecore_imf_context_input_panel_move (Ecore_IMF_Context *ctx, int x, int y) { - if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) - { - ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT, - "ecore_imf_context_input_panel_move"); - return; - } - - if (ctx->klass->input_panel_move) ctx->klass->input_panel_move(ctx, x, y); - ctx->input_panel_x = x; - ctx->input_panel_y = y; + // will be deprecated } diff --git a/src/lib/ecore_imf/ecore_imf_private.h b/src/lib/ecore_imf/ecore_imf_private.h index 7f7377e..c288f9f 100644 --- a/src/lib/ecore_imf/ecore_imf_private.h +++ b/src/lib/ecore_imf/ecore_imf_private.h @@ -45,8 +45,6 @@ struct _Ecore_IMF_Context int input_mode; void *window; void *client_canvas; - int input_panel_x; - int input_panel_y; Eina_Bool (*retrieve_surrounding_func)(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos); void *retrieve_surrounding_data; Ecore_IMF_Autocapital_Type autocapital_type; -- 2.7.4