1 #include <Elementary.h>
3 # include "elementary_config.h"
9 _text_get(void *data __UNUSED__,
10 Evas_Object *obj __UNUSED__,
11 const char *part __UNUSED__)
13 return strdup("label");
17 _content_get(void *data __UNUSED__,
19 const char *part __UNUSED__)
21 Evas_Object *icon = elm_icon_add(obj);
22 elm_icon_standard_set(icon, "home");
23 evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1,
25 evas_object_show(icon);
29 #include "widget_preview_tmpl_head.c"
31 Evas_Object *genlist = elm_genlist_add(win);
32 evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
33 elm_win_resize_object_add(win, genlist);
34 evas_object_show(genlist);
36 Elm_Genlist_Item_Class gic;
38 Elm_Object_Item *it, *top;
40 Elm_Object_Item *glit, *glit_top;
41 >>>>>>> remotes/origin/upstream
42 gic.item_style = "default";
43 gic.func.text_get = _text_get;
44 gic.func.content_get = _content_get;
45 gic.func.state_get = NULL;
48 elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
49 elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
51 it = elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
53 elm_genlist_item_expanded_set(it, EINA_TRUE);
54 elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL);
55 it = elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL);
56 elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL);
57 elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
58 elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
60 elm_genlist_item_top_show(top);
62 glit = elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
64 elm_genlist_item_expanded_set(glit, EINA_TRUE);
65 elm_genlist_item_append(genlist, &gic, NULL, glit, ELM_GENLIST_ITEM_NONE, NULL, NULL);
66 glit = elm_genlist_item_append(genlist, &gic, NULL, glit, ELM_GENLIST_ITEM_NONE, NULL, NULL);
67 elm_genlist_item_append(genlist, &gic, NULL, glit, ELM_GENLIST_ITEM_NONE, NULL, NULL);
68 elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
69 elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
71 elm_genlist_item_show(glit_top, ELM_GENLIST_ITEM_SCROLLTO_TOP);
72 >>>>>>> remotes/origin/upstream
74 #include "widget_preview_tmpl_foot.c"