summaryrefslogtreecommitdiff
path: root/src/modules/ecore_imf/xim/ecore_imf_xim.c
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2019-07-10 20:01:47 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2019-07-10 20:03:14 +0900
commitdaa35a1893e9bfb2013d853a9a978b61c761bc23 (patch)
treec11811fba68e8bdce33970f2ec974e2205663366 /src/modules/ecore_imf/xim/ecore_imf_xim.c
parent4fe9edaa2647a8f2a5f6a46b7ad3c50a80e5271d (diff)
ecore_imf: deprecate ambigous or unused APIs
ecore_imf_context_show ecore_imf_context_hide ecore_imf_context_control_panel_show ecore_imf_context_control_panel_hide ecore_imf_context_preedit_start_event_add ecore_imf_context_preedit_end_event_add ecore_imf_context_preedit_changed_event_add ecore_imf_context_commit_event_add ecore_imf_context_delete_surrounding_event_add Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_imf/xim/ecore_imf_xim.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/modules/ecore_imf/xim/ecore_imf_xim.c b/src/modules/ecore_imf/xim/ecore_imf_xim.c
index a4d567c376..5bb8c4ae2e 100644
--- a/src/modules/ecore_imf/xim/ecore_imf_xim.c
+++ b/src/modules/ecore_imf/xim/ecore_imf_xim.c
@@ -383,7 +383,6 @@ _ecore_imf_context_xim_reset(Ecore_IMF_Context *ctx)
383 free(imf_context_data->preedit_chars); 383 free(imf_context_data->preedit_chars);
384 imf_context_data->preedit_chars = NULL; 384 imf_context_data->preedit_chars = NULL;
385 385
386 ecore_imf_context_preedit_changed_event_add(ctx);
387 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL); 386 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL);
388 } 387 }
389 388
@@ -392,7 +391,6 @@ _ecore_imf_context_xim_reset(Ecore_IMF_Context *ctx)
392 char *result_utf8 = strdup(result); 391 char *result_utf8 = strdup(result);
393 if (result_utf8) 392 if (result_utf8)
394 { 393 {
395 ecore_imf_context_commit_event_add(ctx, result_utf8);
396 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_COMMIT, result_utf8); 394 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_COMMIT, result_utf8);
397 free(result_utf8); 395 free(result_utf8);
398 } 396 }
@@ -695,7 +693,6 @@ _ecore_imf_context_xim_filter_event(Ecore_IMF_Context *ctx,
695 if (!unicode) abort(); 693 if (!unicode) abort();
696 if (unicode[0] >= 0x20 && unicode[0] != 0x7f) 694 if (unicode[0] >= 0x20 && unicode[0] != 0x7f)
697 { 695 {
698 ecore_imf_context_commit_event_add(ctx, compose);
699 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_COMMIT, compose); 696 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_COMMIT, compose);
700 result = EINA_TRUE; 697 result = EINA_TRUE;
701 } 698 }
@@ -882,10 +879,7 @@ _ecore_imf_xim_preedit_start_call(XIC xic EINA_UNUSED,
882 EINA_SAFETY_ON_NULL_RETURN(imf_context_data); 879 EINA_SAFETY_ON_NULL_RETURN(imf_context_data);
883 880
884 if (imf_context_data->finalizing == EINA_FALSE) 881 if (imf_context_data->finalizing == EINA_FALSE)
885 { 882 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_START, NULL);
886 ecore_imf_context_preedit_start_event_add(ctx);
887 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_START, NULL);
888 }
889} 883}
890 884
891static void 885static void
@@ -904,15 +898,11 @@ _ecore_imf_xim_preedit_done_call(XIC xic EINA_UNUSED,
904 imf_context_data->preedit_length = 0; 898 imf_context_data->preedit_length = 0;
905 free(imf_context_data->preedit_chars); 899 free(imf_context_data->preedit_chars);
906 imf_context_data->preedit_chars = NULL; 900 imf_context_data->preedit_chars = NULL;
907 ecore_imf_context_preedit_changed_event_add(ctx);
908 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL); 901 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL);
909 } 902 }
910 903
911 if (imf_context_data->finalizing == EINA_FALSE) 904 if (imf_context_data->finalizing == EINA_FALSE)
912 { 905 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_END, NULL);
913 ecore_imf_context_preedit_end_event_add(ctx);
914 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_END, NULL);
915 }
916} 906}
917 907
918/* FIXME */ 908/* FIXME */
@@ -1049,7 +1039,6 @@ done:
1049 } 1039 }
1050 } 1040 }
1051 1041
1052 ecore_imf_context_preedit_changed_event_add(ctx);
1053 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL); 1042 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL);
1054 } 1043 }
1055 1044
@@ -1072,10 +1061,7 @@ _ecore_imf_xim_preedit_caret_call(XIC xic EINA_UNUSED,
1072 { 1061 {
1073 imf_context_data->preedit_cursor = call_data->position; 1062 imf_context_data->preedit_cursor = call_data->position;
1074 if (imf_context_data->finalizing == EINA_FALSE) 1063 if (imf_context_data->finalizing == EINA_FALSE)
1075 { 1064 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL);
1076 ecore_imf_context_preedit_changed_event_add(ctx);
1077 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL);
1078 }
1079 } 1065 }
1080} 1066}
1081 1067
@@ -1257,7 +1243,6 @@ _ecore_imf_xim_ic_reinitialize(Ecore_IMF_Context *ctx)
1257 imf_context_data->preedit_length = 0; 1243 imf_context_data->preedit_length = 0;
1258 free(imf_context_data->preedit_chars); 1244 free(imf_context_data->preedit_chars);
1259 imf_context_data->preedit_chars = NULL; 1245 imf_context_data->preedit_chars = NULL;
1260 ecore_imf_context_preedit_changed_event_add(ctx);
1261 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL); 1246 ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL);
1262 } 1247 }
1263 } 1248 }