summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_text.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_text.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c
index d3c05639e8..b3d2e5f155 100644
--- a/src/lib/elementary/efl_ui_text.c
+++ b/src/lib/elementary/efl_ui_text.c
@@ -268,19 +268,20 @@ static void _create_selection_handlers(Evas_Object *obj, Efl_Ui_Text_Data *sd);
268static void _magnifier_move(void *data); 268static void _magnifier_move(void *data);
269static void _update_decorations(Eo *obj); 269static void _update_decorations(Eo *obj);
270static void _create_text_cursors(Eo *obj, Efl_Ui_Text_Data *sd); 270static void _create_text_cursors(Eo *obj, Efl_Ui_Text_Data *sd);
271static void _efl_ui_text_changed_cb(void *data EINA_UNUSED, const Efl_Event *event); 271static void _efl_ui_text_changed_cb(void *data, const Efl_Event *event);
272static void _efl_ui_text_selection_changed_cb(void *data EINA_UNUSED, const Efl_Event *event); 272static void _efl_ui_text_changed_user_cb(void *data, const Efl_Event *event);
273static void _efl_ui_text_cursor_changed_cb(void *data EINA_UNUSED, const Efl_Event *event); 273static void _efl_ui_text_selection_changed_cb(void *data, const Efl_Event *event);
274static void _efl_ui_text_move_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED); 274static void _efl_ui_text_cursor_changed_cb(void *data, const Efl_Event *event);
275static void _efl_ui_text_select_none(Eo *obj EINA_UNUSED, Efl_Ui_Text_Data *sd); 275static void _efl_ui_text_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
276static void _efl_ui_text_anchor_hover_end(Eo *obj EINA_UNUSED, Efl_Ui_Text_Data *sd); 276static void _efl_ui_text_select_none(Eo *obj, Efl_Ui_Text_Data *sd);
277static void _efl_ui_text_anchor_hover_end(Eo *obj, Efl_Ui_Text_Data *sd);
277static void _efl_ui_text_anchor_hover_parent_set(Eo *obj, Efl_Ui_Text_Data *sd, Evas_Object *parent); 278static void _efl_ui_text_anchor_hover_parent_set(Eo *obj, Efl_Ui_Text_Data *sd, Evas_Object *parent);
278static const char* _efl_ui_text_selection_get(Eo *obj EINA_UNUSED, Efl_Ui_Text_Data *sd); 279static const char* _efl_ui_text_selection_get(Eo *obj, Efl_Ui_Text_Data *sd);
279static void _edje_signal_emit(Efl_Ui_Text_Data *obj, const char *sig, const char *src); 280static void _edje_signal_emit(Efl_Ui_Text_Data *obj, const char *sig, const char *src);
280static void _decoration_defer_all(Eo *obj); 281static void _decoration_defer_all(Eo *obj);
281static inline Eo * _decoration_create(Eo *obj, Efl_Ui_Text_Data *sd, const char *source, Eina_Bool above); 282static inline Eo * _decoration_create(Eo *obj, Efl_Ui_Text_Data *sd, const char *source, Eina_Bool above);
282static void _decoration_defer(Eo *obj); 283static void _decoration_defer(Eo *obj);
283static void _anchors_clear_all(Evas_Object *o EINA_UNUSED, Efl_Ui_Text_Data *sd); 284static void _anchors_clear_all(Evas_Object *o, Efl_Ui_Text_Data *sd);
284static void _unused_item_objs_free(Efl_Ui_Text_Data *sd); 285static void _unused_item_objs_free(Efl_Ui_Text_Data *sd);
285static void _clear_text_selection(Efl_Ui_Text_Data *sd); 286static void _clear_text_selection(Efl_Ui_Text_Data *sd);
286 287
@@ -3079,7 +3080,7 @@ _efl_ui_text_efl_object_constructor(Eo *obj, Efl_Ui_Text_Data *sd)
3079 evas_object_size_hint_align_set 3080 evas_object_size_hint_align_set
3080 (sd->entry_edje, EVAS_HINT_FILL, EVAS_HINT_FILL); 3081 (sd->entry_edje, EVAS_HINT_FILL, EVAS_HINT_FILL);
3081 efl_event_callback_add(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, 3082 efl_event_callback_add(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER,
3082 _efl_ui_text_changed_cb, obj); 3083 _efl_ui_text_changed_user_cb, obj);
3083 efl_event_callback_add(text_obj, EFL_CANVAS_TEXT_EVENT_CHANGED, 3084 efl_event_callback_add(text_obj, EFL_CANVAS_TEXT_EVENT_CHANGED,
3084 _efl_ui_text_changed_cb, obj); 3085 _efl_ui_text_changed_cb, obj);
3085 efl_event_callback_add(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_SELECTION_CHANGED, 3086 efl_event_callback_add(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_SELECTION_CHANGED,
@@ -3302,7 +3303,7 @@ _efl_ui_text_efl_object_destructor(Eo *obj, Efl_Ui_Text_Data *sd)
3302 3303
3303 text_obj = edje_object_part_swallow_get(sd->entry_edje, "elm.text"); 3304 text_obj = edje_object_part_swallow_get(sd->entry_edje, "elm.text");
3304 efl_event_callback_del(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, 3305 efl_event_callback_del(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER,
3305 _efl_ui_text_changed_cb, obj); 3306 _efl_ui_text_changed_user_cb, obj);
3306 efl_event_callback_del(text_obj, EFL_CANVAS_TEXT_EVENT_CHANGED, 3307 efl_event_callback_del(text_obj, EFL_CANVAS_TEXT_EVENT_CHANGED,
3307 _efl_ui_text_changed_cb, obj); 3308 _efl_ui_text_changed_cb, obj);
3308 efl_event_callback_del(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_SELECTION_CHANGED, 3309 efl_event_callback_del(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_SELECTION_CHANGED,
@@ -5241,6 +5242,13 @@ _efl_ui_text_changed_cb(void *data, const Efl_Event *event EINA_UNUSED)
5241} 5242}
5242 5243
5243static void 5244static void
5245_efl_ui_text_changed_user_cb(void *data, const Efl_Event *event EINA_UNUSED)
5246{
5247 _decoration_defer_all(data);
5248 _entry_changed_handle(data, EFL_UI_TEXT_EVENT_CHANGED_USER);
5249}
5250
5251static void
5244_efl_ui_text_cursor_changed_cb(void *data, const Efl_Event *event EINA_UNUSED) 5252_efl_ui_text_cursor_changed_cb(void *data, const Efl_Event *event EINA_UNUSED)
5245{ 5253{
5246 EFL_UI_TEXT_DATA_GET(data, sd); 5254 EFL_UI_TEXT_DATA_GET(data, sd);