summaryrefslogtreecommitdiff
path: root/tutorial
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-12-11 15:51:03 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-12-11 15:51:03 +0100
commitcba451e99b9e9237c71e37833c72447b2e49b765 (patch)
tree7a133118bc46839fbcfaa82b8ab8c922bb4f398a /tutorial
parentaeaba8306575961868e7a4df8ac82456b4bf6628 (diff)
More adaptation to latest Text changes
Previous fix relied on old headers still being present, which is not good.
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/c/hello-gui/src/gui_main.c4
-rw-r--r--tutorial/csharp/hello-gui/src/gui_main.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/tutorial/c/hello-gui/src/gui_main.c b/tutorial/c/hello-gui/src/gui_main.c
index 882443f6..fa9eeab2 100644
--- a/tutorial/c/hello-gui/src/gui_main.c
+++ b/tutorial/c/hello-gui/src/gui_main.c
@@ -3,7 +3,7 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#include <Efl_Ui.h> 4#include <Efl_Ui.h>
5// Temporary workaround until Unified Text stops using Legacy classes internally 5// Temporary workaround until Unified Text stops using Legacy classes internally
6#include <efl_ui_text.eo.h> 6#include <efl_ui_textbox.eo.h>
7#include <efl_text_interactive.eo.h> 7#include <efl_text_interactive.eo.h>
8 8
9static void 9static void
@@ -29,7 +29,7 @@ _gui_setup()
29 efl_content_set(win, efl_added), 29 efl_content_set(win, efl_added),
30 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240))); 30 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240)));
31 31
32 efl_add(EFL_UI_TEXT_CLASS, box, 32 efl_add(EFL_UI_TEXTBOX_CLASS, box,
33 efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"), 33 efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"),
34 efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE), 34 efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
35 efl_text_interactive_editable_set(efl_added, EINA_FALSE), 35 efl_text_interactive_editable_set(efl_added, EINA_FALSE),
diff --git a/tutorial/csharp/hello-gui/src/gui_main.cs b/tutorial/csharp/hello-gui/src/gui_main.cs
index ec4994d1..235de800 100644
--- a/tutorial/csharp/hello-gui/src/gui_main.cs
+++ b/tutorial/csharp/hello-gui/src/gui_main.cs
@@ -31,7 +31,7 @@ public class Example : Efl.Csharp.Application
31 win.SetContent(box); 31 win.SetContent(box);
32 32
33 // Create a text label widget 33 // Create a text label widget
34 var label = new Efl.Ui.Text(box); 34 var label = new Efl.Ui.Textbox(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.Editable = false; 37 label.Editable = false;