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
This commit is contained in:
parent
1d5a5322df
commit
09416b5ccf
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue