rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=8f8c90ce44b0aa390968c336c1ba9c8cb0d65117

commit 8f8c90ce44b0aa390968c336c1ba9c8cb0d65117
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Thu Nov 10 17:32:59 2016 +0200

    Main window: add windows type icon for windows.
---
 data/Makefile.am         |   2 +-
 data/images/eflete.ico   | Bin 0 -> 3778 bytes
 src/bin/ui/main_window.c |   4 ++++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/data/Makefile.am b/data/Makefile.am
index 78f1370..923ccf2 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -42,7 +42,7 @@ aimagesdir = $(datadir)/eflete/images
 if WANT_TIZEN
 aimages_DATA = \
        ${srcdir}/images/*.png \
-       ${srcdir}/themes/tizen/images/General/cd_icon.png \
+       ${srcdir}/images/eflete.ico \
        ${srcdir}/images/toolbar_icons/*.png
 else
 aimages_DATA = \
diff --git a/data/images/eflete.ico b/data/images/eflete.ico
new file mode 100644
index 0000000..e7ba2c5
Binary files /dev/null and b/data/images/eflete.ico differ
diff --git a/src/bin/ui/main_window.c b/src/bin/ui/main_window.c
index 5e42e67..3829392 100644
--- a/src/bin/ui/main_window.c
+++ b/src/bin/ui/main_window.c
@@ -104,7 +104,11 @@ ui_main_window_add(void)
    assert(ap.win != NULL);
 
    icon = evas_object_image_add(evas_object_evas_get(ap.win));
+#ifdef _WIN32
+   icon_path = eina_stringshare_printf("%seflete.ico", ap.path.image_path);
+#else
    icon_path = eina_stringshare_printf("%seflete.svg", ap.path.image_path);
+#endif
    evas_object_image_file_set(icon, icon_path, NULL);
    eina_stringshare_del(icon_path);
    elm_win_icon_object_set(ap.win, icon);

-- 


Reply via email to