summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-12-16 11:35:35 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-12-16 11:35:35 +0100
commit16efc25ceb3a7fbf4605fb808748dcdbc004e6fb (patch)
tree5254df1ac572fe43286af509486b04cbd2d04711 /src/bin
parentdfc9a3eef32e08ba3b6b746e6722d0ea897c79e9 (diff)
elm_test: workarounds for canvas_textblock style
The horizontally scrollable single-line text input box does not currently visible. This patch turns it into a vertically scrollable multiline input box, with an arbitrary minsize. Also, make the label unselectable.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elementary/test_canvas_textblock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/elementary/test_canvas_textblock.c b/src/bin/elementary/test_canvas_textblock.c
index 1c20ac5..92d2fb0 100644
--- a/src/bin/elementary/test_canvas_textblock.c
+++ b/src/bin/elementary/test_canvas_textblock.c
@@ -34,12 +34,17 @@ test_canvas_textblock(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
34 34
35 efl_add(EFL_UI_TEXTBOX_CLASS, box, 35 efl_add(EFL_UI_TEXTBOX_CLASS, box,
36 efl_gfx_hint_weight_set(efl_added, 1, 0), 36 efl_gfx_hint_weight_set(efl_added, 1, 0),
37 efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
38 efl_text_interactive_editable_set(efl_added, EINA_FALSE),
37 efl_text_set(efl_added, "Live style editor. Enter a style string below:"), 39 efl_text_set(efl_added, "Live style editor. Enter a style string below:"),
38 efl_pack(box, efl_added)); 40 efl_pack(box, efl_added));
39 41
40 input = efl_add(EFL_UI_TEXTBOX_CLASS, box, 42 input = efl_add(EFL_UI_TEXTBOX_CLASS, box,
41 efl_gfx_hint_weight_set(efl_added, 1, 0), 43 efl_gfx_hint_weight_set(efl_added, 1, 0),
42 efl_text_set(efl_added, "font=Sans font_size=24 color=white"), 44 efl_text_set(efl_added, "font=Sans font_size=24 color=white"),
45 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 48)),
46 efl_text_multiline_set(efl_added, EINA_TRUE),
47 efl_text_wrap_set(efl_added, EFL_TEXT_FORMAT_WRAP_WORD),
43 efl_pack(box, efl_added)); 48 efl_pack(box, efl_added));
44 efl_ui_textbox_scrollable_set(input, EINA_TRUE); 49 efl_ui_textbox_scrollable_set(input, EINA_TRUE);
45 50