提交 fdc074be 编写于 作者: B bernard.xiong

fix the modal widget initialization issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@444 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 35e90a50
......@@ -27,6 +27,8 @@ static void _rtgui_win_constructor(rtgui_win_t *win)
win->on_deactivate = RT_NULL;
win->on_close = RT_NULL;
win->title = RT_NULL;
win->modal_code = RTGUI_MODAL_OK;
win->modal_widget = RT_NULL;
/* set window hide */
RTGUI_WIDGET_HIDE(RTGUI_WIDGET(win));
......
......@@ -21,11 +21,12 @@ static void _rtgui_workbench_constructor(rtgui_workbench_t *workbench)
rtgui_widget_set_event_handler(RTGUI_WIDGET(workbench), rtgui_workbench_event_handler);
/* set attributes */
workbench->panel = RT_NULL;
workbench->flag = RTGUI_WORKBENCH_FLAG_DEFAULT;
workbench->modal_code = RTGUI_MODAL_OK;
workbench->title = RT_NULL;
workbench->flag = RTGUI_WORKBENCH_FLAG_DEFAULT;
workbench->panel = RT_NULL;
workbench->title = RT_NULL;
workbench->current_view = RT_NULL;
workbench->modal_code = RTGUI_MODAL_OK;
workbench->modal_widget = RT_NULL;
}
static void _rtgui_workbench_destructor(rtgui_workbench_t *workbench)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册