summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2018-11-12 15:13:09 +0200
committerDaniel Hirt <hirt.danny@gmail.com>2018-11-26 13:17:07 +0200
commitb77fc4ed4f89fe56103ba864eff28d3a1694c1a3 (patch)
treee6b451bf0a19cba5ddf10e78c2563c1619f29fe3 /src/lib/elementary
parent3e5616b3467d2cc2e5b52d2bb234f28c7d72e9bc (diff)
Ui text interactive: emit changed,user event correctly
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_internal_text_interactive.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/elementary/efl_ui_internal_text_interactive.c b/src/lib/elementary/efl_ui_internal_text_interactive.c
index 7a2d9b3c9e..7975cb58df 100644
--- a/src/lib/elementary/efl_ui_internal_text_interactive.c
+++ b/src/lib/elementary/efl_ui_internal_text_interactive.c
@@ -358,12 +358,11 @@ _entry_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_U
358 info.length = end - start; 358 info.length = end - start;
359 info.content = tmp; 359 info.content = tmp;
360 360
361 efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info); 361 evas_textblock_cursor_range_delete(del_start, del_end);
362 362
363 efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
363 free(tmp); 364 free(tmp);
364 365
365 evas_textblock_cursor_range_delete(del_start, del_end);
366
367 _entry_imf_cursor_info_set(obj, cur, en); 366 _entry_imf_cursor_info_set(obj, cur, en);
368 367
369end: 368end:
@@ -605,11 +604,10 @@ _range_del_emit(Evas_Object *obj, Efl_Text_Cursor_Cursor *cur1, Efl_Text_Cursor_
605 tmp = efl_canvas_text_range_text_get(obj, cur1, cur2); 604 tmp = efl_canvas_text_range_text_get(obj, cur1, cur2);
606 info.content = tmp; 605 info.content = tmp;
607 606
608 efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info); 607 evas_textblock_cursor_range_delete(cur1, cur2);
609 608
609 efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
610 if (tmp) free(tmp); 610 if (tmp) free(tmp);
611
612 evas_textblock_cursor_range_delete(cur1, cur2);
613} 611}
614 612
615static void 613static void
@@ -636,10 +634,10 @@ _delete_emit(Eo *obj, Evas_Textblock_Cursor *c, Efl_Ui_Internal_Text_Interactive
636 info.length = 1; 634 info.length = 1;
637 info.content = tmp; 635 info.content = tmp;
638 636
637 evas_textblock_cursor_char_delete(c);
638
639 efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info); 639 efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
640 if (tmp) free(tmp); 640 if (tmp) free(tmp);
641
642 evas_textblock_cursor_char_delete(c);
643} 641}
644 642
645static Eina_Bool 643static Eina_Bool