|
|
|
@ -170,7 +170,7 @@ ibus_im_context_del(Ecore_IMF_Context *ctx) |
|
|
|
|
|
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext*)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
g_signal_handlers_disconnect_by_func(_bus, G_CALLBACK(_bus_connected_cb), ctx); |
|
|
|
|
|
|
|
|
|
if (ibusimcontext->ibuscontext) |
|
|
|
@ -186,7 +186,7 @@ ibus_im_context_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, |
|
|
|
|
{ |
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext*)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN_VAL(ibusimcontext, EINA_FALSE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (type != ECORE_IMF_EVENT_KEY_UP && type != ECORE_IMF_EVENT_KEY_DOWN) |
|
|
|
|
return EINA_FALSE; |
|
|
|
|
|
|
|
|
@ -249,7 +249,7 @@ ibus_im_context_focus_in(Ecore_IMF_Context *ctx) |
|
|
|
|
|
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext*)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ibusimcontext->has_focus) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
@ -271,7 +271,7 @@ ibus_im_context_focus_out(Ecore_IMF_Context *ctx) |
|
|
|
|
|
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext *)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ibusimcontext->has_focus == EINA_FALSE) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
@ -287,7 +287,7 @@ EAPI void |
|
|
|
|
ibus_im_context_reset(Ecore_IMF_Context *ctx) |
|
|
|
|
{ |
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext*)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext);
|
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
if (ibusimcontext->ibuscontext) |
|
|
|
|
ibus_input_context_reset(ibusimcontext->ibuscontext); |
|
|
|
@ -300,7 +300,7 @@ ibus_im_context_preedit_string_get(Ecore_IMF_Context *ctx, |
|
|
|
|
{ |
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext*)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ibusimcontext->enable && ibusimcontext->preedit_visible) |
|
|
|
|
{ |
|
|
|
|
if (str) |
|
|
|
@ -328,7 +328,7 @@ ibus_im_context_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx, |
|
|
|
|
{ |
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext*)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ibusimcontext->enable && ibusimcontext->preedit_visible) |
|
|
|
|
{ |
|
|
|
|
if (str) |
|
|
|
@ -354,7 +354,7 @@ ibus_im_context_client_window_set(Ecore_IMF_Context *ctx, void *window) |
|
|
|
|
EINA_LOG_DBG("canvas : %p", window); |
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext *)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (window != NULL) |
|
|
|
|
ibusimcontext->client_window = (Ecore_X_Window)(Ecore_Window)window; |
|
|
|
|
} |
|
|
|
@ -365,7 +365,7 @@ ibus_im_context_client_canvas_set(Ecore_IMF_Context *ctx, void *canvas) |
|
|
|
|
EINA_LOG_DBG("canvas : %p", canvas); |
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext *)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (canvas != NULL) |
|
|
|
|
ibusimcontext->client_canvas = canvas; |
|
|
|
|
} |
|
|
|
@ -378,7 +378,7 @@ _set_cursor_location_internal(Ecore_IMF_Context *ctx) |
|
|
|
|
int canvas_x, canvas_y; |
|
|
|
|
|
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ibusimcontext->ibuscontext == NULL) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
@ -410,7 +410,7 @@ ibus_im_context_cursor_location_set(Ecore_IMF_Context *ctx, int x, int y, int w, |
|
|
|
|
EINA_LOG_DBG("x : %d, y : %d, w, %d, h :%d", x, y, w, h); |
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext *)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ibusimcontext->cursor_x != x || |
|
|
|
|
ibusimcontext->cursor_y != y || |
|
|
|
|
ibusimcontext->cursor_w != w || |
|
|
|
@ -431,7 +431,7 @@ ibus_im_context_use_preedit_set(Ecore_IMF_Context *ctx, Eina_Bool use_preedit) |
|
|
|
|
EINA_LOG_DBG("preedit : %d", use_preedit); |
|
|
|
|
IBusIMContext *ibusimcontext = (IBusIMContext *)ecore_imf_context_data_get(ctx); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ibusimcontext->ibuscontext) |
|
|
|
|
{ |
|
|
|
|
if (use_preedit) |
|
|
|
@ -582,7 +582,7 @@ _ibus_context_show_preedit_text_cb(IBusInputContext *ibuscontext __UNUSED__, |
|
|
|
|
IBusIMContext *ibusimcontext) |
|
|
|
|
{ |
|
|
|
|
EINA_LOG_DBG("preedit visible : %d", ibusimcontext->preedit_visible); |
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext);
|
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext); |
|
|
|
|
|
|
|
|
|
if (ibusimcontext->preedit_visible == EINA_TRUE) |
|
|
|
|
return; |
|
|
|
|