summaryrefslogtreecommitdiff
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
commit30b6179eb915595180fa30decc87434aa0c7e290 (patch)
tree1db9ebdc2f84d848ce00be8dad2b75c97aacbd39
parente10bb019fa962a564e42a45536d94c2ee23d0fbc (diff)
elementary: Add rudimentary support for Elm Wayland apps to set border icon
Summary: This is a patch to fix 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>
-rw-r--r--src/lib/elm_win.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 6d4135905..cb909a0d0 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -2836,6 +2836,23 @@ _elm_win_frame_add(Elm_Win_Data *sd,
2836 2836
2837 evas_object_is_frame_object_set(sd->frame_obj, EINA_TRUE); 2837 evas_object_is_frame_object_set(sd->frame_obj, EINA_TRUE);
2838 2838
2839 if (!sd->icon)
2840 {
2841 Efreet_Desktop *d;
2842
2843 sd->icon = elm_icon_add(sd->obj);
2844
2845 d = efreet_util_desktop_exec_find(_elm_appname);
2846 if (d)
2847 {
2848 elm_icon_standard_set(sd->icon, d->icon);
2849 efreet_desktop_free(d);
2850 }
2851 }
2852
2853 edje_object_part_swallow(sd->frame_obj, "elm.swallow.icon",
2854 sd->icon);
2855
2839 evas_object_event_callback_add 2856 evas_object_event_callback_add
2840 (sd->frame_obj, EVAS_CALLBACK_MOVE, _elm_win_frame_obj_move, sd); 2857 (sd->frame_obj, EVAS_CALLBACK_MOVE, _elm_win_frame_obj_move, sd);
2841 evas_object_event_callback_add 2858 evas_object_event_callback_add