aboutsummaryrefslogtreecommitdiffstats
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
parentcsharp: Make examples build again. (diff)
downloadexamples-master.tar.gz
hello-gui: make text non-editableHEADmaster
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 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()
efl_add(EFL_UI_TEXT_CLASS, box,
efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"),
efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
+ efl_text_interactive_editable_set(efl_added, EINA_FALSE),
efl_gfx_hint_weight_set(efl_added, 1.0, 0.9),
efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
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
var label = new Efl.Ui.Text(box);
// Set its content and customize it
label.SetText("Hello World. This is an Efl.Ui application!");
- label.SetSelectionAllowed(false);
+ label.Editable = false;
+ label.SelectionAllowed = false;
label.SetHintWeight(1.0, 0.9);
label.SetHintFill(false, false);
label.SetHintAlign(0.5, 0.5);