From e9c537d0960cad631176a45c06ea523e7d62a442 Mon Sep 17 00:00:00 2001 From: Daehyeon Jung Date: Wed, 13 Jan 2016 19:31:31 +0900 Subject: [PATCH] use class_name for instance id Change-Id: I13db581b0914f2798c39fa001c51369318083978 Signed-off-by: Daehyeon Jung --- src/widget_app.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/widget_app.c b/src/widget_app.c index 9326483..5e7d2e2 100755 --- a/src/widget_app.c +++ b/src/widget_app.c @@ -456,14 +456,23 @@ EXPORT_API int widget_app_get_elm_win(widget_context_h context, return widget_app_error(WIDGET_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL); widget_context_s *cxt = (widget_context_s*)context; - Evas_Object *ret_win = NULL; + Evas_Object *ret_win; + Ecore_Wl_Window *wl_win; ret_win = elm_win_add(NULL, cxt->id, ELM_WIN_BASIC); if (ret_win == NULL) { _E("failed to create window"); return WIDGET_ERROR_FAULT; } - elm_win_title_set(ret_win, cxt->id); + + wl_win = elm_win_wl_window_get(ret_win); + if (wl_win == NULL) { + _E("failed to get wayland window"); + evas_object_del(ret_win); + return WIDGET_ERROR_FAULT; + } + + ecore_wl_window_class_name_set(wl_win, cxt->id); *win = ret_win; cxt->win = ret_win; -- 2.7.4