fix the modal widget initialization issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@444 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
35e90a5004
commit
fdc074beb2
|
@ -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->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)
|
||||
|
|
Loading…
Reference in New Issue