WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=a3607f23d7bd411e1720814e551272e42aeefdd4
commit a3607f23d7bd411e1720814e551272e42aeefdd4 Author: Pierre Couderc <[email protected]> Date: Mon Dec 11 01:52:23 2017 -0800 Wiki page set-up changed with summary [] by Pierre Couderc --- pages/develop/legacy/tutorial/genlist/set-up.txt | 14 ++++++++------ 1 file 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); Before adding new entries, it is necessary to build a basic item class. -//**__Building a Basic Item Class__**// +==Building a Basic Item Class== When adding an item, genlist_item_{append, prepend, insert} function needs item 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 ''content_get'' fields which are used to add text and an icon to the list entry. This is explained in another section. -//**__Adding the Element__**// +==Adding the Element== Once the genlist item class object is created, a new element is added to the list by calling ''elm_genlist_item_append()''. @@ -59,7 +59,7 @@ With most parameters as NULL and ''_itc'' having most of its members NULL, too, the elements of that list are blank and will not trigger anything when selected. -//**__Text in the List Elements__**// +==Text in the List Elements== Use ''text_get'' field to add text in the items in the ''Elm_Genlist_Item_Class'' structure. @@ -129,7 +129,7 @@ _genlist_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part) } </code> -//**__Evas_Object in the List Elements__**// +==Evas_Object in the List Elements== Icons are added in a similar fashion: there is a callback named ''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) For the default theme, this displays a red rectangle on the left of each list item and a green one on their right. -//**__Event on Gentlist Items__**// +==Event on Gentlist Items== Genlist items triggers a callback when clicked. This callback is chosen when adding the new item (for example, when calling ''elm_genlist_item_append()''): @@ -225,7 +225,9 @@ te } </code> \\ -//**__The whole code__**// : {{/code_c/tutorial/genlist/set-up_genlist.c}} + + +The whole code: {{/code_c/tutorial/genlist/set-up_genlist.c}} ==== Next Part ==== --
