summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 16:22:21 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:44:00 +0000
commitce8e11764cbe8840dd96bd13efb3eecc6722b21c (patch)
tree02a6b90c94096cdaedf58f2e60f2b29a2afc1bf5 /src
parent391955627c91e7d305b8f049fd9f1e426e8bed03 (diff)
ecore imf - xim module - use proper prorotypes and returns for xim
Diffstat (limited to 'src')
-rw-r--r--src/modules/ecore_imf/xim/ecore_imf_xim.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/ecore_imf/xim/ecore_imf_xim.c b/src/modules/ecore_imf/xim/ecore_imf_xim.c
index 606a793058..d50cea20d9 100644
--- a/src/modules/ecore_imf/xim/ecore_imf_xim.c
+++ b/src/modules/ecore_imf/xim/ecore_imf_xim.c
@@ -97,7 +97,7 @@ static void _ecore_imf_xim_feedback_attr_add(Eina_List **attrs,
97static void _ecore_imf_xim_ic_reinitialize(Ecore_IMF_Context *ctx); 97static void _ecore_imf_xim_ic_reinitialize(Ecore_IMF_Context *ctx);
98static void _ecore_imf_xim_ic_client_window_set(Ecore_IMF_Context *ctx, 98static void _ecore_imf_xim_ic_client_window_set(Ecore_IMF_Context *ctx,
99 Ecore_X_Window window); 99 Ecore_X_Window window);
100static int _ecore_imf_xim_preedit_start_call(XIC xic, 100static void _ecore_imf_xim_preedit_start_call(XIC xic,
101 XPointer client_data, 101 XPointer client_data,
102 XPointer call_data); 102 XPointer call_data);
103static void _ecore_imf_xim_preedit_done_call(XIC xic, 103static void _ecore_imf_xim_preedit_done_call(XIC xic,
@@ -863,7 +863,7 @@ _ecore_imf_xim_context_data_destroy(Ecore_IMF_Context_Data *imf_context_data)
863 free(imf_context_data); 863 free(imf_context_data);
864} 864}
865 865
866static int 866static void
867_ecore_imf_xim_preedit_start_call(XIC xic EINA_UNUSED, 867_ecore_imf_xim_preedit_start_call(XIC xic EINA_UNUSED,
868 XPointer client_data, 868 XPointer client_data,
869 XPointer call_data EINA_UNUSED) 869 XPointer call_data EINA_UNUSED)
@@ -872,14 +872,13 @@ _ecore_imf_xim_preedit_start_call(XIC xic EINA_UNUSED,
872 Ecore_IMF_Context_Data *imf_context_data = ecore_imf_context_data_get(ctx); 872 Ecore_IMF_Context_Data *imf_context_data = ecore_imf_context_data_get(ctx);
873 873
874 DBG("ctx=%p, imf_context_data=%p", ctx, imf_context_data); 874 DBG("ctx=%p, imf_context_data=%p", ctx, imf_context_data);
875 EINA_SAFETY_ON_NULL_RETURN_VAL(imf_context_data, -1); 875 EINA_SAFETY_ON_NULL_RETURN(imf_context_data);
876 876
877 if (imf_context_data->finalizing == EINA_FALSE) 877 if (imf_context_data->finalizing == EINA_FALSE)
878 { 878 {
879 ecore_imf_context_preedit_start_event_add(ctx); 879 ecore_imf_context_preedit_start_event_add(ctx);
880 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_START, NULL); 880 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_START, NULL);
881 } 881 }
882 return -1;
883} 882}
884 883
885static void 884static void