Merge branch 'intefl/svn_merge' of ssh://165.213.149.219:29418/slp/pkgs/e/elementary...
[framework/uifw/elementary.git] / doc / widgets / widget_preview_list.c
1 #include "widget_preview_tmpl_head.c"
2
3 static const char *dict[] = \
4 {
5    "awkward",
6    "businessman",
7    "cylinder",
8    "dying",
9    "extremophile",
10    "futhark",
11    "guttural",
12    "hypocrites",
13    "issuing",
14    "just",
15    "knows",
16    "lying",
17    "mystery",
18    "nutrients",
19    "oxymoron",
20    "putting",
21    "quizzes",
22    "running",
23    "systematically",
24    "tyranny",
25    "usually",
26    "vacuum",
27    "want",
28    "xenophobia",
29    "yacht",
30    "zebra"
31 };
32
33 Evas_Object *o = elm_list_add(win);
34 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
35 elm_win_resize_object_add(win, o);
36 evas_object_show(o);
37
38 unsigned int i;
39 for (i = 0; i < (sizeof(dict) / sizeof(dict[0])); i++)
40   {
41      char buf[32];
42      elm_list_item_append(o, dict[i], NULL, NULL, NULL, NULL);
43      snprintf(buf, sizeof(buf), "%c", dict[i][0]);
44   }
45
46 #include "widget_preview_tmpl_foot.c"