summaryrefslogtreecommitdiff
path: root/src/bin/efreet/efreetd_cache.c
diff options
context:
space:
mode:
authorAli <ali198724@gmail.com>2020-04-16 20:03:31 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-04-16 20:03:31 +0900
commitda36015148b01331333acb52a584f9002cf28aeb (patch)
tree92987d939d01228eb945a4db56e03948cf61b779 /src/bin/efreet/efreetd_cache.c
parentd62d380690bce69543e518791025ae79f8f7e65b (diff)
evas_textblock : fix text insertion & selection with ps in single line
Summary: when we have text that contains <ps> (example "p1<ps>p2") in a single line mode and the cursor position is after the ps tag then we try to insert any character using the keyboard it will show segmentation fault. also with the same text if we try to select the text we will notice that it is corrupted. this should resolve https://phab.enlightenment.org/T8594 Test Plan: #define EFL_EO_API_SUPPORT 1 #define EFL_BETA_API_SUPPORT 1 #include <Eina.h> #include <Elementary.h> #include <Efl_Ui.h> static void _gui_quit_cb(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED) { efl_exit(0); } static void _gui_setup() { Eo *win, *box; win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC), efl_text_set(efl_added, "Hello World"), efl_ui_win_autodel_set(efl_added, EINA_TRUE)); // when the user clicks "close" on a window there is a request to delete efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _gui_quit_cb, NULL); box = efl_add(EFL_UI_BOX_CLASS, win, efl_content_set(win, efl_added), efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240))); Eo *text = efl_add(EFL_UI_TEXTBOX_CLASS, box, efl_gfx_hint_weight_set(efl_added, 1.0, 1.0), efl_gfx_hint_align_set(efl_added, 1.0, 1.0), efl_pack(box, efl_added)); efl_text_interactive_selection_allowed_set(text, EINA_TRUE); efl_text_multiline_set(text,EINA_FALSE); efl_text_markup_set(text, "p1<ps>p2"); } EAPI_MAIN void efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) { _gui_setup(); } EFL_MAIN() Reviewers: ali.alzyod, woohyun, zmike, bu5hm4n, segfaultxavi, stefan_schmidt Reviewed By: ali.alzyod, woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11621
Diffstat (limited to 'src/bin/efreet/efreetd_cache.c')
0 files changed, 0 insertions, 0 deletions