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);
51 elm_thumb_editable_set(th, EINA_TRUE);
56 sc = elm_scroller_add(win);
57 evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
58 elm_win_resize_object_add(win, sc);
60 elm_scroller_content_set(sc, tb);
64 evas_object_resize(win, 600, 600);
65 evas_object_show(win);