Canvas text cursor: move to Efl.Canvas.Text namespace
authorDaniel Hirt <hirt.danny@gmail.com>
Mon, 5 Jun 2017 11:52:10 +0000 (14:52 +0300)
committerDaniel Hirt <hirt.danny@gmail.com>
Sun, 11 Jun 2017 20:58:52 +0000 (23:58 +0300)
commit49b838c448e8b77623ce45206476212e2f513778
tree3fd189bda00d91022b04a61b85d9ceb02bca082a
parent716cc6be5ba4c7c5112750427281e448457cfe1a
Canvas text cursor: move to Efl.Canvas.Text namespace

Originally it was its own object.
There are some valid claims that there is no justification for it to
remain an object.
Furthermore, it's apparent that it added little benefit: changes of
each cursors, in practice, triggered a query for all objects of the
same textblock. There wasn't real advantage to have a finer resolution
of controlling the cursors with their own events.

This ports back a lot of code, and changes a lot of other code in the
higher-up widgets, such as Efl.Ui.Text and co.

The usage was replaces from:
  efl_canvas_text_cursor_char_next(cur_obj)
to
  efl_canvas_text_cursor_char_next(text_obj, cur_obj)
that is, it is an operations on the TEXT OBJECT, rather than on the
(now removed) cursor object.

So, one less efl object to worry about now.
Hopefully, the port went smooth.
15 files changed:
src/Makefile_Elementary.am
src/Makefile_Evas.am
src/bin/elementary/test.c
src/bin/elementary/test_efl_ui_text.c
src/lib/efl/interfaces/efl_text_types.eot
src/lib/elementary/efl_ui_internal_text_interactive.c
src/lib/elementary/efl_ui_text.c
src/lib/elementary/efl_ui_text.eo
src/lib/elementary/efl_ui_text_interactive.eo
src/lib/evas/Evas_Eo.h
src/lib/evas/canvas/efl_canvas_text.eo
src/lib/evas/canvas/efl_canvas_text_cursor.eo [deleted file]
src/lib/evas/canvas/evas_object_textblock.c
src/lib/evas/canvas/evas_textblock_legacy.h
src/tests/evas/evas_test_textblock.c