summaryrefslogtreecommitdiff
path: root/reference
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
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')
-rw-r--r--reference/c/ui/src/focus_main.c4
-rw-r--r--reference/c/ui/src/ui_container.c2
-rw-r--r--reference/c/ui/src/ui_translation.c2
-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
6 files changed, 9 insertions, 9 deletions
diff --git a/reference/c/ui/src/focus_main.c b/reference/c/ui/src/focus_main.c
index d58e62be..5bd14dde 100644
--- a/reference/c/ui/src/focus_main.c
+++ b/reference/c/ui/src/focus_main.c
@@ -58,7 +58,7 @@ _gui_setup()
58 efl_pack(hbox, efl_added), 58 efl_pack(hbox, efl_added),
59 efl_event_callback_add(efl_added, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED, 59 efl_event_callback_add(efl_added, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED,
60 _focus_changed, NULL), 60 _focus_changed, NULL),
61 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 61 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED,
62 _gui_about_clicked_cb, efl_added)); 62 _gui_about_clicked_cb, efl_added));
63 63
64 efl_add(EFL_UI_BUTTON_CLASS, hbox, 64 efl_add(EFL_UI_BUTTON_CLASS, hbox,
@@ -66,7 +66,7 @@ _gui_setup()
66 efl_pack(hbox, efl_added), 66 efl_pack(hbox, efl_added),
67 efl_event_callback_add(efl_added, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED, 67 efl_event_callback_add(efl_added, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED,
68 _focus_changed, NULL), 68 _focus_changed, NULL),
69 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 69 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED,
70 _gui_quit_clicked_cb, efl_added)); 70 _gui_quit_clicked_cb, efl_added));
71 71
72 efl_ui_focus_util_focus(about); 72 efl_ui_focus_util_focus(about);
diff --git a/reference/c/ui/src/ui_container.c b/reference/c/ui/src/ui_container.c
index 1eb7254b..166a458a 100644
--- a/reference/c/ui/src/ui_container.c
+++ b/reference/c/ui/src/ui_container.c
@@ -97,7 +97,7 @@ _ui_panes_setup(Efl_Ui_Win *win)
97 efl_text_set(efl_added, "Quit"), 97 efl_text_set(efl_added, "Quit"),
98 efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(150, 30)), 98 efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(150, 30)),
99 efl_content_set(efl_part(horiz_split, "second"), efl_added), 99 efl_content_set(efl_part(horiz_split, "second"), efl_added),
100 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 100 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED,
101 _gui_quit_cb, efl_added)); 101 _gui_quit_cb, efl_added));
102} 102}
103 103
diff --git a/reference/c/ui/src/ui_translation.c b/reference/c/ui/src/ui_translation.c
index a576ac68..33e8041d 100644
--- a/reference/c/ui/src/ui_translation.c
+++ b/reference/c/ui/src/ui_translation.c
@@ -55,7 +55,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
55 efl_ui_l10n_text_set(efl_added, "Quit", _TEXT_DOMAIN), 55 efl_ui_l10n_text_set(efl_added, "Quit", _TEXT_DOMAIN),
56 efl_pack_end(box, efl_added), 56 efl_pack_end(box, efl_added),
57 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 100)), 57 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 100)),
58 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 58 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED,
59 _gui_quit_cb, efl_added)); 59 _gui_quit_cb, efl_added));
60 60
61 efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 320)); 61 efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 320));
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 0e8c481d..4ced2a8d 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 fea4a494..c3f05daa 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 283c998c..03e57afd 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!");