summaryrefslogtreecommitdiff
path: root/pages/develop/legacy/tutorial
diff options
context:
space:
mode:
authorPierre Couderc <pierre@couderc.eu>2017-12-11 01:52:23 -0800
committerapache <apache@e5-web1.enlightenment.org>2017-12-11 01:52:23 -0800
commita3607f23d7bd411e1720814e551272e42aeefdd4 (patch)
tree134817f18ce5809399ec129d5e823f3287d8c895 /pages/develop/legacy/tutorial
parent2d4e7a060f6b6826915fdc6277d954f4c99d850f (diff)
Wiki page set-up changed with summary [] by Pierre Couderc
Diffstat (limited to 'pages/develop/legacy/tutorial')
-rw-r--r--pages/develop/legacy/tutorial/genlist/set-up.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/pages/develop/legacy/tutorial/genlist/set-up.txt b/pages/develop/legacy/tutorial/genlist/set-up.txt
index b0e48046e..c52d4d6f5 100644
--- a/pages/develop/legacy/tutorial/genlist/set-up.txt
+++ b/pages/develop/legacy/tutorial/genlist/set-up.txt
@@ -16,7 +16,7 @@ Evas_Object *list = elm_genlist_add(win);
16 16
17Before adding new entries, it is necessary to build a basic item class. 17Before adding new entries, it is necessary to build a basic item class.
18 18
19//**__Building a Basic Item Class__**// 19==Building a Basic Item Class==
20 20
21When adding an item, genlist_item_{append, prepend, insert} function needs 21When adding an item, genlist_item_{append, prepend, insert} function needs
22item class of the item. Given callback parameters are used at retrieving 22item class of the item. Given callback parameters are used at retrieving
@@ -39,7 +39,7 @@ every other field to NULL. However, this leaves out the ''text_get'' and
39''content_get'' fields which are used to add text and an icon to the list 39''content_get'' fields which are used to add text and an icon to the list
40entry. This is explained in another section. 40entry. This is explained in another section.
41 41
42//**__Adding the Element__**// 42==Adding the Element==
43 43
44Once the genlist item class object is created, a new element is added to the 44Once the genlist item class object is created, a new element is added to the
45list by calling ''elm_genlist_item_append()''. 45list by calling ''elm_genlist_item_append()''.
@@ -59,7 +59,7 @@ With most parameters as NULL and ''_itc'' having most of its members NULL,
59too, the elements of that list are blank and will not trigger anything when 59too, the elements of that list are blank and will not trigger anything when
60selected. 60selected.
61 61
62//**__Text in the List Elements__**// 62==Text in the List Elements==
63 63
64Use ''text_get'' field to add text in the items in the 64Use ''text_get'' field to add text in the items in the
65''Elm_Genlist_Item_Class'' structure. 65''Elm_Genlist_Item_Class'' structure.
@@ -129,7 +129,7 @@ _genlist_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part)
129} 129}
130</code> 130</code>
131 131
132//**__Evas_Object in the List Elements__**// 132==Evas_Object in the List Elements==
133 133
134Icons are added in a similar fashion: there is a callback named 134Icons are added in a similar fashion: there is a callback named
135''content_get'' which returns a pointer to an ''Evas_Object'' and is called 135''content_get'' which returns a pointer to an ''Evas_Object'' and is called
@@ -180,7 +180,7 @@ _genlist_content_get(void *data, Evas_Object *obj, const char *part)
180For the default theme, this displays a red rectangle on the left of each list 180For the default theme, this displays a red rectangle on the left of each list
181item and a green one on their right. 181item and a green one on their right.
182 182
183//**__Event on Gentlist Items__**// 183==Event on Gentlist Items==
184 184
185Genlist items triggers a callback when clicked. This callback is chosen when 185Genlist items triggers a callback when clicked. This callback is chosen when
186adding the new item (for example, when calling ''elm_genlist_item_append()''): 186adding the new item (for example, when calling ''elm_genlist_item_append()''):
@@ -225,7 +225,9 @@ te
225} 225}
226</code> 226</code>
227\\ 227\\
228//**__The whole code__**// : {{/code_c/tutorial/genlist/set-up_genlist.c}} 228
229
230The whole code: {{/code_c/tutorial/genlist/set-up_genlist.c}}
229 231
230==== Next Part ==== 232==== Next Part ====
231 233