diff options
| author | bernard.xiong <[email protected]> | 2009-11-24 23:58:47 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-11-24 23:58:47 +0000 |
| commit | f3335885b2430e011555bed40db1232b044813fd (patch) | |
| tree | 1d60e1c09e4b4240a4555b74fc83263ab5550b35 /rtgui/widgets/workbench.c | |
| parent | f02f4c1ca1304c31336d263223334de55db2c178 (diff) | |
radio project can play mp3/wav file.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@175 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/widgets/workbench.c')
| -rw-r--r-- | rtgui/widgets/workbench.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rtgui/widgets/workbench.c b/rtgui/widgets/workbench.c index 239237bb3e..a8d52b8484 100644 --- a/rtgui/widgets/workbench.c +++ b/rtgui/widgets/workbench.c @@ -164,9 +164,6 @@ rt_bool_t rtgui_workbench_event_loop(rtgui_workbench_t* workbench) char event_buf[256]; struct rtgui_event* event = (struct rtgui_event*)&event_buf[0]; - /* show workbench firstly */ - rtgui_workbench_show(workbench); - if (workbench->flag & RTGUI_WORKBENCH_FLAG_MODAL_MODE) { /* event loop for modal mode shown view */ @@ -180,6 +177,9 @@ rt_bool_t rtgui_workbench_event_loop(rtgui_workbench_t* workbench) } else { + /* show workbench firstly */ + rtgui_workbench_show(workbench); + while (!(workbench->flag & RTGUI_WORKBENCH_FLAG_CLOSED)) { if (rtgui_thread_recv(event, sizeof(event_buf)) == RT_EOK) |
