summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-07-17 12:49:42 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-07-17 12:49:42 +0200
commit4c2c569c7ef0bba59df374486e3b83026f9d2e1d (patch)
tree24fd3694bbac29c0e4afafdac971c5cd1cd2fb35
parent9ed9d94501f741da449f5c5703ffc4ca31589a2e (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.c1
-rw-r--r--tutorial/csharp/hello-gui/src/gui_main.cs3
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 8ecbf5b..2a00c86 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 ab64bb9..3d1ff4c 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);