1 #include <Elementary.h>
2 #ifndef ELM_LIB_QUICKLAUNCH
4 test_thumb(void *data, Evas_Object *obj, void *event_info)
6 Evas_Object *win, *bg, *sc, *tb, *th;
24 win = elm_win_add(NULL, "thumb", ELM_WIN_BASIC);
25 elm_win_title_set(win, "Thumb");
26 elm_win_autodel_set(win, 1);
29 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
30 elm_win_resize_object_add(win, bg);
33 tb = elm_table_add(win);
34 evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
37 for (j = 0; j < 12; j++)
39 for (i = 0; i < 12; i++)
41 th = elm_thumb_add(win);
42 snprintf(buf, sizeof(buf), "%s/images/%s", PACKAGE_DATA_DIR,
45 elm_thumb_file_set(th, buf, img[n]);
46 evas_object_size_hint_weight_set(th, EVAS_HINT_EXPAND,
48 evas_object_size_hint_align_set(th, EVAS_HINT_FILL,
50 elm_table_pack(tb, th, i, j, 1, 1);
55 sc = elm_scroller_add(win);
56 evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
57 elm_win_resize_object_add(win, sc);
59 elm_scroller_content_set(sc, tb);
63 evas_object_resize(win, 600, 600);
64 evas_object_show(win);