summaryrefslogtreecommitdiff
path: root/reference/csharp/ui
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-08-16 15:30:41 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-08-16 15:31:38 -0300
commitfa93b9f7c0c7f78d4c842cf2ac7758b0d3c2874b (patch)
treeabceb4fe43ad74a31ff7cdd39d8c31073a99f889 /reference/csharp/ui
parente8245fe5dd645a1f5e8049a693194b94d95c12a7 (diff)
Fixing compiles errors from examples, c and c#.
Summary: Change from efl broke the compilation of examples, updating names to the new changes. Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Differential Revision: https://phab.enlightenment.org/D9581
Diffstat (limited to 'reference/csharp/ui')
-rw-r--r--reference/csharp/ui/src/focus_main.cs6
-rw-r--r--reference/csharp/ui/src/ui_container.cs2
-rw-r--r--reference/csharp/ui/src/ui_custom_widget.cs2
3 files changed, 5 insertions, 5 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 0e8c481..4ced2a8 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -18,7 +18,7 @@ public class Example : Efl.Csharp.Application
18 if (e.arg == false) 18 if (e.arg == false)
19 Efl.Ui.Config.Exit(); 19 Efl.Ui.Config.Exit();
20 }; 20 };
21 21
22 22
23 // Create the main box container 23 // Create the main box container
24 var vbox = new Efl.Ui.Box(win); 24 var vbox = new Efl.Ui.Box(win);
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
46 var button = new Efl.Ui.Button(hbox); 46 var button = new Efl.Ui.Button(hbox);
47 button.SetText("Focus mover"); 47 button.SetText("Focus mover");
48 button.FocusChangedEvt += FocusChangedCb; 48 button.FocusChangedEvt += FocusChangedCb;
49 button.ClickedEvt += (object sender, Efl.Ui.IClickableClickedEvt_Args e) => { 49 button.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => {
50 Console.WriteLine("Clicked Focus Mover"); 50 Console.WriteLine("Clicked Focus Mover");
51 // Manually transfer focus to the first check box 51 // Manually transfer focus to the first check box
52 Efl.Ui.Focus.Util.Focus(first_checkbox); 52 Efl.Ui.Focus.Util.Focus(first_checkbox);
@@ -57,7 +57,7 @@ public class Example : Efl.Csharp.Application
57 button = new Efl.Ui.Button(hbox); 57 button = new Efl.Ui.Button(hbox);
58 button.SetText("Quit"); 58 button.SetText("Quit");
59 button.FocusChangedEvt += FocusChangedCb; 59 button.FocusChangedEvt += FocusChangedCb;
60 button.ClickedEvt += (object sender, Efl.Ui.IClickableClickedEvt_Args e) => { 60 button.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => {
61 Console.WriteLine("Clicked Quit"); 61 Console.WriteLine("Clicked Quit");
62 Efl.Ui.Config.Exit(); 62 Efl.Ui.Config.Exit();
63 }; 63 };
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index fea4a49..c3f05da 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -98,7 +98,7 @@ public class Example : Efl.Csharp.Application
98 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win); 98 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win);
99 quit_btn.SetText("Quit"); 99 quit_btn.SetText("Quit");
100 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30)); 100 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30));
101 quit_btn.ClickedEvt += (object sender, Efl.Ui.IClickableClickedEvt_Args e) => { 101 quit_btn.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => {
102 // Exit the EFL main loop 102 // Exit the EFL main loop
103 Efl.Ui.Config.Exit(); 103 Efl.Ui.Config.Exit();
104 }; 104 };
diff --git a/reference/csharp/ui/src/ui_custom_widget.cs b/reference/csharp/ui/src/ui_custom_widget.cs
index 283c998..03e57af 100644
--- a/reference/csharp/ui/src/ui_custom_widget.cs
+++ b/reference/csharp/ui/src/ui_custom_widget.cs
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
46 46
47 // Instantiate our custom button widget 47 // Instantiate our custom button widget
48 MyButton btn = new MyButton(win, 99); 48 MyButton btn = new MyButton(win, 99);
49 btn.ClickedEvt += (object sender, Efl.Ui.IClickableClickedEvt_Args e) => { 49 btn.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => {
50 // When the button is clicked, change its text 50 // When the button is clicked, change its text
51 MyButton b = (MyButton)sender; 51 MyButton b = (MyButton)sender;
52 b.SetText("Hello!"); 52 b.SetText("Hello!");