Canvas text: add "changed" event

We need to keep track on changes of content.
This commit is contained in:
Daniel Hirt 2016-07-11 11:18:19 +00:00
parent 0c38846e33
commit f9deaa9be9
2 changed files with 5 additions and 2 deletions

View File

@ -303,4 +303,7 @@ class Efl.Canvas.Text (Efl.Canvas.Object, Efl.Text)
Efl.Text.text.set;
Efl.Text.text.get;
}
events {
changed; [[The content (text or annotations) have changed.]]
}
}

View File

@ -13963,13 +13963,13 @@ _efl_canvas_text_range_annotations_get(Eo *eo_obj EINA_UNUSED, Efl_Canvas_Text_D
}
EOLIAN static Efl_Canvas_Text_Annotation *
_efl_canvas_text_cursor_object_item_insert(Eo *cur_obj,
_efl_canvas_text_cursor_object_item_insert(Eo *cur_obj EINA_UNUSED,
Efl_Canvas_Text_Cursor_Data *cur, const char *format)
{
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
Efl_Canvas_Text_Annotation *ret =
_textblock_annotation_insert(cur->obj, o, cur, cur, format, EINA_TRUE);
eo_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
eo_event_callback_call(cur->obj, EFL_CANVAS_TEXT_EVENT_CHANGED, NULL);
return ret;
}