diff options
author | Xavi Artigas <xavierartigas@yahoo.es> | 2019-07-17 12:49:42 +0200 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-07-17 12:49:42 +0200 |
commit | 4c2c569c7ef0bba59df374486e3b83026f9d2e1d (patch) | |
tree | 24fd3694bbac29c0e4afafdac971c5cd1cd2fb35 | |
parent | 9ed9d94501f741da449f5c5703ffc4ca31589a2e (diff) |
hello-gui: make text non-editable
Non-editable was the default when these tutorials were created, but not anymore.
-rw-r--r-- | tutorial/c/hello-gui/src/gui_main.c | 1 | ||||
-rw-r--r-- | tutorial/csharp/hello-gui/src/gui_main.cs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tutorial/c/hello-gui/src/gui_main.c b/tutorial/c/hello-gui/src/gui_main.c index 8ecbf5b7..2a00c864 100644 --- a/tutorial/c/hello-gui/src/gui_main.c +++ b/tutorial/c/hello-gui/src/gui_main.c | |||
@@ -31,6 +31,7 @@ _gui_setup() | |||
31 | efl_add(EFL_UI_TEXT_CLASS, box, | 31 | efl_add(EFL_UI_TEXT_CLASS, box, |
32 | efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"), | 32 | efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"), |
33 | efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE), | 33 | efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE), |
34 | efl_text_interactive_editable_set(efl_added, EINA_FALSE), | ||
34 | efl_gfx_hint_weight_set(efl_added, 1.0, 0.9), | 35 | efl_gfx_hint_weight_set(efl_added, 1.0, 0.9), |
35 | efl_gfx_hint_align_set(efl_added, 0.5, 0.5), | 36 | efl_gfx_hint_align_set(efl_added, 0.5, 0.5), |
36 | efl_gfx_hint_fill_set(efl_added, EINA_FALSE, EINA_FALSE), | 37 | efl_gfx_hint_fill_set(efl_added, EINA_FALSE, EINA_FALSE), |
diff --git a/tutorial/csharp/hello-gui/src/gui_main.cs b/tutorial/csharp/hello-gui/src/gui_main.cs index ab64bb9e..3d1ff4c4 100644 --- a/tutorial/csharp/hello-gui/src/gui_main.cs +++ b/tutorial/csharp/hello-gui/src/gui_main.cs | |||
@@ -34,7 +34,8 @@ public class Example : Efl.Csharp.Application | |||
34 | var label = new Efl.Ui.Text(box); | 34 | var label = new Efl.Ui.Text(box); |
35 | // Set its content and customize it | 35 | // Set its content and customize it |
36 | label.SetText("Hello World. This is an Efl.Ui application!"); | 36 | label.SetText("Hello World. This is an Efl.Ui application!"); |
37 | label.SetSelectionAllowed(false); | 37 | label.Editable = false; |
38 | label.SelectionAllowed = false; | ||
38 | label.SetHintWeight(1.0, 0.9); | 39 | label.SetHintWeight(1.0, 0.9); |
39 | label.SetHintFill(false, false); | 40 | label.SetHintFill(false, false); |
40 | label.SetHintAlign(0.5, 0.5); | 41 | label.SetHintAlign(0.5, 0.5); |