summaryrefslogtreecommitdiff
path: root/src/modules/ecore_imf/wayland/wayland_imcontext.c
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2019-07-15 11:37:53 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2019-07-15 11:37:53 +0900
commitf5ee2e3bb841c38b3025dfed18a0fe3ce70a4ab0 (patch)
treeefe78092232298fb1c44336d0f779d9b0730878a /src/modules/ecore_imf/wayland/wayland_imcontext.c
parentc3c81263fd4504c8558ea47a48d0e764997b21d0 (diff)
ecore_imf: remove code to use deprecated API in wayland immodule
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_imf/wayland/wayland_imcontext.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/modules/ecore_imf/wayland/wayland_imcontext.c b/src/modules/ecore_imf/wayland/wayland_imcontext.c
index d7bcfe7994..70781fb93e 100644
--- a/src/modules/ecore_imf/wayland/wayland_imcontext.c
+++ b/src/modules/ecore_imf/wayland/wayland_imcontext.c
@@ -299,7 +299,6 @@ text_input_commit_string(void *data,
299 299
300 if (old_preedit) 300 if (old_preedit)
301 { 301 {
302 ecore_imf_context_preedit_end_event_add(imcontext->ctx);
303 ecore_imf_context_event_callback_call(imcontext->ctx, 302 ecore_imf_context_event_callback_call(imcontext->ctx,
304 ECORE_IMF_CALLBACK_PREEDIT_END, 303 ECORE_IMF_CALLBACK_PREEDIT_END,
305 NULL); 304 NULL);
@@ -331,7 +330,6 @@ text_input_commit_string(void *data,
331 if (surrounding) 330 if (surrounding)
332 free(surrounding); 331 free(surrounding);
333 332
334 ecore_imf_context_delete_surrounding_event_add(imcontext->ctx, ev.offset, ev.n_chars);
335 ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_DELETE_SURROUNDING, &ev); 333 ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_DELETE_SURROUNDING, &ev);
336 } 334 }
337 } 335 }
@@ -341,7 +339,6 @@ text_input_commit_string(void *data,
341 imcontext->pending_commit.cursor = 0; 339 imcontext->pending_commit.cursor = 0;
342 imcontext->pending_commit.anchor = 0; 340 imcontext->pending_commit.anchor = 0;
343 341
344 ecore_imf_context_commit_event_add(imcontext->ctx, text);
345 ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_COMMIT, (void *)text); 342 ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_COMMIT, (void *)text);
346} 343}
347 344
@@ -354,17 +351,13 @@ commit_preedit(WaylandIMContext *imcontext)
354 if (!imcontext->ctx) 351 if (!imcontext->ctx)
355 return; 352 return;
356 353
357 ecore_imf_context_preedit_changed_event_add(imcontext->ctx);
358 ecore_imf_context_event_callback_call(imcontext->ctx, 354 ecore_imf_context_event_callback_call(imcontext->ctx,
359 ECORE_IMF_CALLBACK_PREEDIT_CHANGED, 355 ECORE_IMF_CALLBACK_PREEDIT_CHANGED,
360 NULL); 356 NULL);
361 357
362 ecore_imf_context_preedit_end_event_add(imcontext->ctx);
363 ecore_imf_context_event_callback_call(imcontext->ctx, 358 ecore_imf_context_event_callback_call(imcontext->ctx,
364 ECORE_IMF_CALLBACK_PREEDIT_END, NULL); 359 ECORE_IMF_CALLBACK_PREEDIT_END, NULL);
365 360
366 ecore_imf_context_commit_event_add(imcontext->ctx,
367 imcontext->preedit_commit);
368 ecore_imf_context_event_callback_call(imcontext->ctx, 361 ecore_imf_context_event_callback_call(imcontext->ctx,
369 ECORE_IMF_CALLBACK_COMMIT, 362 ECORE_IMF_CALLBACK_COMMIT,
370 (void *)imcontext->preedit_commit); 363 (void *)imcontext->preedit_commit);
@@ -458,20 +451,17 @@ text_input_preedit_string(void *data,
458 451
459 if (!old_preedit) 452 if (!old_preedit)
460 { 453 {
461 ecore_imf_context_preedit_start_event_add(imcontext->ctx);
462 ecore_imf_context_event_callback_call(imcontext->ctx, 454 ecore_imf_context_event_callback_call(imcontext->ctx,
463 ECORE_IMF_CALLBACK_PREEDIT_START, 455 ECORE_IMF_CALLBACK_PREEDIT_START,
464 NULL); 456 NULL);
465 } 457 }
466 458
467 ecore_imf_context_preedit_changed_event_add(imcontext->ctx);
468 ecore_imf_context_event_callback_call(imcontext->ctx, 459 ecore_imf_context_event_callback_call(imcontext->ctx,
469 ECORE_IMF_CALLBACK_PREEDIT_CHANGED, 460 ECORE_IMF_CALLBACK_PREEDIT_CHANGED,
470 NULL); 461 NULL);
471 462
472 if (imcontext->preedit_text && strlen(imcontext->preedit_text) == 0) 463 if (imcontext->preedit_text && strlen(imcontext->preedit_text) == 0)
473 { 464 {
474 ecore_imf_context_preedit_end_event_add(imcontext->ctx);
475 ecore_imf_context_event_callback_call(imcontext->ctx, 465 ecore_imf_context_event_callback_call(imcontext->ctx,
476 ECORE_IMF_CALLBACK_PREEDIT_END, 466 ECORE_IMF_CALLBACK_PREEDIT_END,
477 NULL); 467 NULL);
@@ -492,7 +482,6 @@ text_input_delete_surrounding_text(void *data,
492 imcontext->pending_commit.delete_index = ev.offset = index; 482 imcontext->pending_commit.delete_index = ev.offset = index;
493 imcontext->pending_commit.delete_length = ev.n_chars = length; 483 imcontext->pending_commit.delete_length = ev.n_chars = length;
494 484
495 ecore_imf_context_delete_surrounding_event_add(imcontext->ctx, ev.offset, ev.n_chars);
496 ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_DELETE_SURROUNDING, &ev); 485 ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_DELETE_SURROUNDING, &ev);
497} 486}
498 487