1 #include <Elementary.h>
2 #ifndef ELM_LIB_QUICKLAUNCH
4 icon_clicked(void *data, Evas_Object *obj, void *event_info)
10 test_icon(void *data, Evas_Object *obj, void *event_info)
12 Evas_Object *win, *ic;
15 win = elm_win_add(NULL, "icon-transparent", ELM_WIN_BASIC);
16 elm_win_title_set(win, "Icon Transparent");
17 elm_win_autodel_set(win, 1);
18 elm_win_alpha_set(win, 1);
20 ic = elm_icon_add(win);
21 snprintf(buf, sizeof(buf), "%s/images/logo.png", PACKAGE_DATA_DIR);
22 elm_icon_file_set(ic, buf, NULL);
23 elm_icon_scale_set(ic, 0, 0);
24 elm_icon_no_scale_set(ic, 1);
25 evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
26 evas_object_size_hint_fill_set(ic, 0.5, 0.5);
27 elm_win_resize_object_add(win, ic);
30 evas_object_smart_callback_add(ic, "clicked", icon_clicked, NULL);
32 evas_object_show(win);