path: root/src/bin/win.c
diff options
authorChris Michael <cp.michael@samsung.com>2016-07-19 12:56:54 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-19 12:56:54 -0400
commite549612ab27694006317514f1ffb72d0ff28048e (patch)
treeefeafd44d21e434e526edd40fc464466dcd6df1c /src/bin/win.c
parentfix vietnamese translation (diff)
terminology: Fix issue of icon not showing under wayland
Essentially, set the proper icon_name. The icon_name should match the name of the .desktop file so that elementary can find the fdo icon to use. This fixes the issue of the window icon not showing up when running under Weston. With the proper .desktop file name now set, we no longer need to create and set an elm_win_icon_object. Fixes https://phab.enlightenment.org/T3460 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/bin/win.c')
1 files changed, 2 insertions, 9 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 3f6ba9c..bc64073 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -708,12 +708,11 @@ static Evas_Object *
win_add(const char *name, const char *role,
const char *title, const char *icon_name)
- Evas_Object *win, *o;
- char buf[4096];
+ Evas_Object *win;
if (!name) name = "main";
if (!title) title = "Terminology";
- if (!icon_name) icon_name = "Terminology";
+ if (!icon_name) icon_name = "terminology";
win = elm_win_add(NULL, name, ELM_WIN_BASIC);
elm_win_title_set(win, title);
@@ -722,12 +721,6 @@ win_add(const char *name, const char *role,
elm_win_autodel_set(win, EINA_TRUE);
- o = evas_object_image_add(evas_object_evas_get(win));
- snprintf(buf, sizeof(buf), "%s/images/terminology.png",
- elm_app_data_dir_get());
- evas_object_image_file_set(o, buf, NULL);
- elm_win_icon_object_set(win, o);
return win;