Deprecated ecore_imf_context_input_panel_move API
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 26 Jan 2012 06:21:53 +0000 (15:21 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 26 Jan 2012 06:21:53 +0000 (15:21 +0900)
Change-Id: I1936b142ee3858c12eceeba575618b08ee461319

src/lib/ecore_imf/Ecore_IMF.h
src/lib/ecore_imf/ecore_imf_context.c
src/lib/ecore_imf/ecore_imf_private.h

index e9e05df..fc9694a 100644 (file)
@@ -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
  */
index a2e796b..eb06f83 100644 (file)
@@ -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
 }
 
index 7f7377e..c288f9f 100644 (file)
@@ -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;