xartigas pushed a commit to branch master.

http://git.enlightenment.org/tools/examples.git/commit/?id=09416b5ccfcd530e715d87e881e9eab841025089

commit 09416b5ccfcd530e715d87e881e9eab841025089
Author: Lauro Moura <[email protected]>
Date:   Fri Feb 1 09:57:15 2019 +0100

    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
---
 tutorial/c/eo-intro/src/eo_intro_main.c       | 6 +++---
 tutorial/c/eo-refcount/src/eo_refcount_main.c | 6 +++---
 tutorial/csharp/eo-intro/src/eo_intro_main.cs | 8 ++++----
 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 997d6d5c..afc254d2 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
 _obj_create()
 {
    // First create a root element
-   _root = efl_new(EFL_MODEL_ITEM_CLASS,
+   _root = efl_new(EFL_GENERIC_MODEL_CLASS,
                    efl_name_set(efl_added, "Root"));
 
    // Create the first child element
-   _child1 = efl_add(EFL_MODEL_ITEM_CLASS, _root,
+   _child1 = efl_add(EFL_GENERIC_MODEL_CLASS, _root,
                      efl_name_set(efl_added, "Child1"));
 
    // Create the second child element, this time, with an extra reference
-   _child2 = efl_add_ref(EFL_MODEL_ITEM_CLASS, _root,
+   _child2 = efl_add_ref(EFL_GENERIC_MODEL_CLASS, _root,
                          efl_name_set(efl_added, "Child2"));
 }
 
diff --git a/tutorial/c/eo-refcount/src/eo_refcount_main.c 
b/tutorial/c/eo-refcount/src/eo_refcount_main.c
index 861153bc..9e5b3bd8 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
 _obj_create()
 {
    // First create a root element
-   _root = efl_new(EFL_MODEL_ITEM_CLASS,
+   _root = efl_new(EFL_GENERIC_MODEL_CLASS,
                    efl_name_set(efl_added, "Root"));
    // Add a weak reference so we can keep track of its state
    efl_wref_add(_root, &_root_ref);
@@ -60,7 +60,7 @@ _obj_create()
    efl_event_callback_add(_root, EFL_EVENT_DEL, _obj_del_cb, NULL);
 
    // Create the first child element
-   _child1 = efl_add(EFL_MODEL_ITEM_CLASS, _root,
+   _child1 = efl_add(EFL_GENERIC_MODEL_CLASS, _root,
                      efl_name_set(efl_added, "Child1"));
    // Add a weak reference so we can keep track of its state
    efl_wref_add(_child1, &_child1_ref);
@@ -68,7 +68,7 @@ _obj_create()
    efl_event_callback_add(_child1, EFL_EVENT_DEL, _obj_del_cb, NULL);
 
    // Create the second child element, this time, with an extra reference
-   _child2 = efl_add_ref(EFL_MODEL_ITEM_CLASS, _root,
+   _child2 = efl_add_ref(EFL_GENERIC_MODEL_CLASS, _root,
                          efl_name_set(efl_added, "Child2"));
    // Add a weak reference so we can keep track of its state
    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 5972919d..db9ce451 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;
 
 public class Example
 {
-    static Efl.ModelItem root, child2;
+    static Efl.GenericModel root, child2;
 
     // Create our test hierarchy
     static void ObjCreate()
     {
         // First create a root element
-        root = new Efl.ModelItem(null);
+        root = new Efl.GenericModel(null);
         root.SetName("Root");
 
         // Create the first child element
-        var child = new Efl.ModelItem(root);
+        var child = new Efl.GenericModel(root);
         child.SetName("Child1");
 
         // Create the second child element, this time, with an extra reference
-        child2 = new Efl.ModelItem(root);
+        child2 = new Efl.GenericModel(root);
         child2.SetName("Child2");
     }
 

-- 


Reply via email to