diff options
author | Tom Hacohen <tom@stosb.com> | 2016-06-13 13:12:21 +0100 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-06-13 13:12:21 +0100 |
commit | 1df3613605affa8f1ced58a40dae77cf190b2aca (patch) | |
tree | 66b2c4193bca2ed744436ca179ae7f4d99f78f9f | |
parent | 2482b31f3592ac19c2a1c9136cc1471244561d05 (diff) | |
download | efl-1df3613605affa8f1ced58a40dae77cf190b2aca.tar.gz |
Canvas text cursor: Don't emit changed cb on copy when not changed.
-rw-r--r-- | src/lib/evas/canvas/evas_object_textblock.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 788835d6a9..504d0f7d6f 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -9433,8 +9433,12 @@ _efl_canvas_text_cursor_copy(Eo *cur_obj, Efl_Canvas_Text_Cursor_Data *cur, const Efl_Canvas_Text_Cursor *src_obj) { Efl_Canvas_Text_Cursor_Data *src = eo_data_scope_get(src_obj, EFL_CANVAS_TEXT_CURSOR_CLASS); - _evas_textblock_cursor_copy(cur, src); - eo_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL); + + if (!efl_canvas_text_cursor_equal(cur_obj, src_obj)) + { + _evas_textblock_cursor_copy(cur, src); + eo_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL); + } } /* text controls */ |