From: Daehyeon Jung Date: Wed, 13 Jan 2016 10:31:31 +0000 (+0900) Subject: use class_name for instance id X-Git-Tag: accepted/tizen/mobile/20160114.064515^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F56891%2F2;p=platform%2Fcore%2Fappfw%2Fappcore-widget.git use class_name for instance id Change-Id: I13db581b0914f2798c39fa001c51369318083978 Signed-off-by: Daehyeon Jung --- 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;