This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository www-content.
View the commit online.
commit 186a41e60351cf0c7ddda89fd75c565bf5d580cf
Author: Dmitri Chudinov <dmitri.chudi...@gmail.com>
AuthorDate: Mon Jun 13 08:05:02 2022 -0700
Wiki page eo-intro.md changed with summary [] by Dmitri Chudinov
---
pages/develop/tutorials/c/eo-intro.md.txt | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/pages/develop/tutorials/c/eo-intro.md.txt b/pages/develop/tutorials/c/eo-intro.md.txt
index b5a6c1a11..dc9e96c6e 100644
--- a/pages/develop/tutorials/c/eo-intro.md.txt
+++ b/pages/develop/tutorials/c/eo-intro.md.txt
@@ -69,7 +69,7 @@ static void
_obj_create()
{
// First create a root element
- _root = efl_new(EFL_MODEL_ITEM_CLASS,
+ _root = efl_new(EFL_MODEL_PROVIDER_CLASS,
efl_name_set(efl_added, "Root"));
}
```
@@ -80,9 +80,9 @@ _obj_create()
* Calls any constructor method defined for the object's class.
* Calls a list of methods to further initialize or configure the new object.
-In the code snippet above an object of type ``EFL_MODEL_ITEM_CLASS`` is created, and ``efl_name_set()`` is then used to configure the object (as explained below).
+In the code snippet above an object of type ``EFL_MODEL_PROVIDER_CLASS`` is created, and ``efl_name_set()`` is then used to configure the object (as explained below).
-Note that the specific type of object being created in this tutorial (``EFL_MODEL_ITEM_CLASS``) is not important. It was chosen because it does not need configuration and is therefore easier to use.
+Note that the specific type of object being created in this tutorial (``EFL_MODEL_PROVIDER_CLASS``) is not important. It was chosen because it does not need configuration and is therefore easier to use.
You can use as many configuration calls inside ``efl_new()`` as you need, since it accepts an infinite number of parameters. Also, configuration calls can use the special symbol ``efl_added`` which refers to the object being created. Together these two powerful features make object creation code much more compact.
@@ -136,7 +136,7 @@ static void
_obj_create()
{
// First create a root element
- _root = efl_new(EFL_MODEL_ITEM_CLASS,
+ _root = efl_new(EFL_MODEL_PROVIDER_CLASS,
efl_name_set(efl_added, "Root"));
}
@@ -178,7 +178,7 @@ Next, in the ``_obj_create()`` method add these lines below the call to ``efl_ne
```c
// Create the first child element
- _child1 = efl_add(EFL_MODEL_ITEM_CLASS, _root,
+ _child1 = efl_add(EFL_MODEL_PROVIDER_CLASS, _root,
efl_name_set(efl_added, "Child1"));
```
@@ -192,13 +192,13 @@ As you can see, ``efl_add()`` is very convenient since it allows you to create a
>
> Likewise, you can assign an object to a parent using ``efl_parent_set(obj, parent)``. This steals the reference from you and gives it to the new parent.
-In the above code snippet, you are creating a new object (of type ``EFL_MODEL_ITEM_CLASS``, again) and setting its parent to ``_root``, so from this point onwards you can forget about this object: its parent will take care of it.
+In the above code snippet, you are creating a new object (of type ``EFL_MODEL_PROVIDER_CLASS``, again) and setting its parent to ``_root``, so from this point onwards you can forget about this object: its parent will take care of it.
Now add a second object immediately below the previous one:
```c
// 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_MODEL_PROVIDER_CLASS, _root,
efl_name_set(efl_added, "Child2"));
```
@@ -238,15 +238,15 @@ static void
_obj_create()
{
// First create a root element
- _root = efl_new(EFL_MODEL_ITEM_CLASS,
+ _root = efl_new(EFL_MODEL_PROVIDER_CLASS,
efl_name_set(efl_added, "Root"));
// Create the first child element
- _child1 = efl_add(EFL_MODEL_ITEM_CLASS, _root,
+ _child1 = efl_add(EFL_MODEL_PROVIDER_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_MODEL_PROVIDER_CLASS, _root,
efl_name_set(efl_added, "Child2"));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.