aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-25 13:33:57 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-25 13:36:07 -0400
commit48fd252c94a8d94ba2630cda6155b581ac89aa4c (patch)
treebd4248beff974e9a5719d3824d4a81e0085499f4 /legacy/elementary/src/lib/elm_win.c
parentelm_interface_scrollable: fix wrong mirrored calculation (diff)
downloadefl-48fd252c94a8d94ba2630cda6155b581ac89aa4c.tar.gz
elementary: Add rudimentary support for Elm Wayland apps to set border icon
Summary: This is a patch to fix https://phab.enlightenment.org/T2453 where elm apps in weston/E did not display the icon on the border. This is just preliminary support because it only tries to find the efreet desktop file based on _elm_appname. This support Could be extended to allow efreet to search based on window title, etc, etc. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 6d41359057..cb909a0d05 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -2836,6 +2836,23 @@ _elm_win_frame_add(Elm_Win_Data *sd,
evas_object_is_frame_object_set(sd->frame_obj, EINA_TRUE);
+ if (!sd->icon)
+ {
+ Efreet_Desktop *d;
+
+ sd->icon = elm_icon_add(sd->obj);
+
+ d = efreet_util_desktop_exec_find(_elm_appname);
+ if (d)
+ {
+ elm_icon_standard_set(sd->icon, d->icon);
+ efreet_desktop_free(d);
+ }
+ }
+
+ edje_object_part_swallow(sd->frame_obj, "elm.swallow.icon",
+ sd->icon);
+
evas_object_event_callback_add
(sd->frame_obj, EVAS_CALLBACK_MOVE, _elm_win_frame_obj_move, sd);
evas_object_event_callback_add