2 # include "elementary_config.h"
4 #include <Elementary.h>
5 #ifndef ELM_LIB_QUICKLAUNCH
7 test_thumb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
9 Evas_Object *win, *sc, *tb, *th;
29 win = elm_win_util_standard_add("thumb", "Thumb");
30 elm_win_autodel_set(win, EINA_TRUE);
32 tb = elm_table_add(win);
33 evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
36 for (j = 0; j < 12; j++)
38 for (i = 0; i < 12; i++)
40 th = elm_thumb_add(win);
41 snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(),
44 elm_thumb_file_set(th, buf, img[n]);
45 evas_object_size_hint_weight_set(th, EVAS_HINT_EXPAND,
47 evas_object_size_hint_align_set(th, EVAS_HINT_FILL,
49 elm_table_pack(tb, th, i, j, 1, 1);
50 elm_thumb_editable_set(th, EINA_TRUE);
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_object_content_set(sc, tb);
63 evas_object_resize(win, 600, 600);
64 evas_object_show(win);