use class_name for instance id 91/56891/2 accepted/tizen/mobile/20160114.064515 accepted/tizen/tv/20160114.064607 accepted/tizen/wearable/20160114.064649 submit/tizen/20160114.015735
authorDaehyeon Jung <darrenh.jung@samsung.com>
Wed, 13 Jan 2016 10:31:31 +0000 (19:31 +0900)
committerDaehyeon Jung <darrenh.jung@samsung.com>
Wed, 13 Jan 2016 11:04:24 +0000 (20:04 +0900)
Change-Id: I13db581b0914f2798c39fa001c51369318083978
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
src/widget_app.c

index 9326483..5e7d2e2 100755 (executable)
@@ -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;