forked from enlightenment/efl
Ui text interactive: emit changed,user event correctly
This commit is contained in:
parent
3e5616b346
commit
b77fc4ed4f
|
@ -358,12 +358,11 @@ _entry_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_U
|
||||||
info.length = end - start;
|
info.length = end - start;
|
||||||
info.content = tmp;
|
info.content = tmp;
|
||||||
|
|
||||||
efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
|
|
||||||
|
|
||||||
free(tmp);
|
|
||||||
|
|
||||||
evas_textblock_cursor_range_delete(del_start, del_end);
|
evas_textblock_cursor_range_delete(del_start, del_end);
|
||||||
|
|
||||||
|
efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
|
||||||
|
free(tmp);
|
||||||
|
|
||||||
_entry_imf_cursor_info_set(obj, cur, en);
|
_entry_imf_cursor_info_set(obj, cur, en);
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
@ -605,11 +604,10 @@ _range_del_emit(Evas_Object *obj, Efl_Text_Cursor_Cursor *cur1, Efl_Text_Cursor_
|
||||||
tmp = efl_canvas_text_range_text_get(obj, cur1, cur2);
|
tmp = efl_canvas_text_range_text_get(obj, cur1, cur2);
|
||||||
info.content = tmp;
|
info.content = tmp;
|
||||||
|
|
||||||
efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
|
|
||||||
|
|
||||||
if (tmp) free(tmp);
|
|
||||||
|
|
||||||
evas_textblock_cursor_range_delete(cur1, cur2);
|
evas_textblock_cursor_range_delete(cur1, cur2);
|
||||||
|
|
||||||
|
efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
|
||||||
|
if (tmp) free(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -636,10 +634,10 @@ _delete_emit(Eo *obj, Evas_Textblock_Cursor *c, Efl_Ui_Internal_Text_Interactive
|
||||||
info.length = 1;
|
info.length = 1;
|
||||||
info.content = tmp;
|
info.content = tmp;
|
||||||
|
|
||||||
|
evas_textblock_cursor_char_delete(c);
|
||||||
|
|
||||||
efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
|
efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
|
||||||
if (tmp) free(tmp);
|
if (tmp) free(tmp);
|
||||||
|
|
||||||
evas_textblock_cursor_char_delete(c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue