1 #include <Elementary.h>
3 # include "elementary_config.h"
5 #ifndef ELM_LIB_QUICKLAUNCH
7 test_thumb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
9 Evas_Object *win, *bg, *sc, *tb, *th;
29 win = elm_win_add(NULL, "thumb", ELM_WIN_BASIC);
30 elm_win_title_set(win, "Thumb");
31 elm_win_autodel_set(win, EINA_TRUE);
34 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
35 elm_win_resize_object_add(win, bg);
38 tb = elm_table_add(win);
39 evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
42 for (j = 0; j < 12; j++)
44 for (i = 0; i < 12; i++)
46 th = elm_thumb_add(win);
47 snprintf(buf, sizeof(buf), "%s/images/%s", PACKAGE_DATA_DIR,
50 elm_thumb_file_set(th, buf, img[n]);
51 evas_object_size_hint_weight_set(th, EVAS_HINT_EXPAND,
53 evas_object_size_hint_align_set(th, EVAS_HINT_FILL,
55 elm_table_pack(tb, th, i, j, 1, 1);
56 elm_thumb_editable_set(th, EINA_TRUE);
61 sc = elm_scroller_add(win);
62 evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
63 elm_win_resize_object_add(win, sc);
65 elm_object_content_set(sc, tb);
69 evas_object_resize(win, 600, 600);
70 evas_object_show(win);