summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@gmail.com>2019-02-01 09:57:15 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-02-01 10:14:28 +0100
commit09416b5ccfcd530e715d87e881e9eab841025089 (patch)
tree17a1aa9822f2355205b2f5c5d3b20b319db3bfe6
parent1d5a5322dfc5ad67c9d3c338d0622d736ade1554 (diff)
examples: Change Model_Item to Generic_Model
Summary: This class was renamed in D7533 in the EFL repo. Test Plan: Run examples Reviewers: segfaultxavi, felipealmeida Reviewed By: segfaultxavi Differential Revision: https://phab.enlightenment.org/D7850
-rw-r--r--tutorial/c/eo-intro/src/eo_intro_main.c6
-rw-r--r--tutorial/c/eo-refcount/src/eo_refcount_main.c6
-rw-r--r--tutorial/csharp/eo-intro/src/eo_intro_main.cs8
3 files changed, 10 insertions, 10 deletions
diff --git a/tutorial/c/eo-intro/src/eo_intro_main.c b/tutorial/c/eo-intro/src/eo_intro_main.c
index 997d6d5..afc254d 100644
--- a/tutorial/c/eo-intro/src/eo_intro_main.c
+++ b/tutorial/c/eo-intro/src/eo_intro_main.c
@@ -13,15 +13,15 @@ static void
13_obj_create() 13_obj_create()
14{ 14{
15 // First create a root element 15 // First create a root element
16 _root = efl_new(EFL_MODEL_ITEM_CLASS, 16 _root = efl_new(EFL_GENERIC_MODEL_CLASS,
17 efl_name_set(efl_added, "Root")); 17 efl_name_set(efl_added, "Root"));
18 18
19 // Create the first child element 19 // Create the first child element
20 _child1 = efl_add(EFL_MODEL_ITEM_CLASS, _root, 20 _child1 = efl_add(EFL_GENERIC_MODEL_CLASS, _root,
21 efl_name_set(efl_added, "Child1")); 21 efl_name_set(efl_added, "Child1"));
22 22
23 // Create the second child element, this time, with an extra reference 23 // Create the second child element, this time, with an extra reference
24 _child2 = efl_add_ref(EFL_MODEL_ITEM_CLASS, _root, 24 _child2 = efl_add_ref(EFL_GENERIC_MODEL_CLASS, _root,
25 efl_name_set(efl_added, "Child2")); 25 efl_name_set(efl_added, "Child2"));
26} 26}
27 27
diff --git a/tutorial/c/eo-refcount/src/eo_refcount_main.c b/tutorial/c/eo-refcount/src/eo_refcount_main.c
index 861153b..9e5b3bd 100644
--- a/tutorial/c/eo-refcount/src/eo_refcount_main.c
+++ b/tutorial/c/eo-refcount/src/eo_refcount_main.c
@@ -52,7 +52,7 @@ static void
52_obj_create() 52_obj_create()
53{ 53{
54 // First create a root element 54 // First create a root element
55 _root = efl_new(EFL_MODEL_ITEM_CLASS, 55 _root = efl_new(EFL_GENERIC_MODEL_CLASS,
56 efl_name_set(efl_added, "Root")); 56 efl_name_set(efl_added, "Root"));
57 // Add a weak reference so we can keep track of its state 57 // Add a weak reference so we can keep track of its state
58 efl_wref_add(_root, &_root_ref); 58 efl_wref_add(_root, &_root_ref);
@@ -60,7 +60,7 @@ _obj_create()
60 efl_event_callback_add(_root, EFL_EVENT_DEL, _obj_del_cb, NULL); 60 efl_event_callback_add(_root, EFL_EVENT_DEL, _obj_del_cb, NULL);
61 61
62 // Create the first child element 62 // Create the first child element
63 _child1 = efl_add(EFL_MODEL_ITEM_CLASS, _root, 63 _child1 = efl_add(EFL_GENERIC_MODEL_CLASS, _root,
64 efl_name_set(efl_added, "Child1")); 64 efl_name_set(efl_added, "Child1"));
65 // Add a weak reference so we can keep track of its state 65 // Add a weak reference so we can keep track of its state
66 efl_wref_add(_child1, &_child1_ref); 66 efl_wref_add(_child1, &_child1_ref);
@@ -68,7 +68,7 @@ _obj_create()
68 efl_event_callback_add(_child1, EFL_EVENT_DEL, _obj_del_cb, NULL); 68 efl_event_callback_add(_child1, EFL_EVENT_DEL, _obj_del_cb, NULL);
69 69
70 // Create the second child element, this time, with an extra reference 70 // Create the second child element, this time, with an extra reference
71 _child2 = efl_add_ref(EFL_MODEL_ITEM_CLASS, _root, 71 _child2 = efl_add_ref(EFL_GENERIC_MODEL_CLASS, _root,
72 efl_name_set(efl_added, "Child2")); 72 efl_name_set(efl_added, "Child2"));
73 // Add a weak reference so we can keep track of its state 73 // Add a weak reference so we can keep track of its state
74 efl_wref_add(_child2, &_child2_ref); 74 efl_wref_add(_child2, &_child2_ref);
diff --git a/tutorial/csharp/eo-intro/src/eo_intro_main.cs b/tutorial/csharp/eo-intro/src/eo_intro_main.cs
index 5972919..db9ce45 100644
--- a/tutorial/csharp/eo-intro/src/eo_intro_main.cs
+++ b/tutorial/csharp/eo-intro/src/eo_intro_main.cs
@@ -2,21 +2,21 @@ using System;
2 2
3public class Example 3public class Example
4{ 4{
5 static Efl.ModelItem root, child2; 5 static Efl.GenericModel root, child2;
6 6
7 // Create our test hierarchy 7 // Create our test hierarchy
8 static void ObjCreate() 8 static void ObjCreate()
9 { 9 {
10 // First create a root element 10 // First create a root element
11 root = new Efl.ModelItem(null); 11 root = new Efl.GenericModel(null);
12 root.SetName("Root"); 12 root.SetName("Root");
13 13
14 // Create the first child element 14 // Create the first child element
15 var child = new Efl.ModelItem(root); 15 var child = new Efl.GenericModel(root);
16 child.SetName("Child1"); 16 child.SetName("Child1");
17 17
18 // Create the second child element, this time, with an extra reference 18 // Create the second child element, this time, with an extra reference
19 child2 = new Efl.ModelItem(root); 19 child2 = new Efl.GenericModel(root);
20 child2.SetName("Child2"); 20 child2.SetName("Child2");
21 } 21 }
22 22