aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_icon.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/elementary/src/bin/test_icon.c')
-rw-r--r--legacy/elementary/src/bin/test_icon.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_icon.c b/legacy/elementary/src/bin/test_icon.c
new file mode 100644
index 0000000000..8d275b5917
--- /dev/null
+++ b/legacy/elementary/src/bin/test_icon.c
@@ -0,0 +1,22 @@
+#include <Elementary.h>
+
+void
+test_icon(void *data, Evas_Object *obj, void *event_info)
+{
+ Evas_Object *win, *bg, *ic;
+ char buf[PATH_MAX];
+
+ win = elm_win_add(NULL, "icon-transparent", ELM_WIN_BASIC);
+ elm_win_title_set(win, "Icon Transparent");
+ elm_win_autodel_set(win, 1);
+ elm_win_alpha_set(win, 1);
+
+ ic = elm_icon_add(win);
+ snprintf(buf, sizeof(buf), "%s/images/logo.png", PACKAGE_DATA_DIR);
+ elm_icon_file_set(ic, buf, NULL);
+ elm_icon_scale_set(ic, 0, 0);
+ elm_win_resize_object_add(win, ic);
+ evas_object_show(ic);
+
+ evas_object_show(win);
+}