diff options
| author | [email protected] <[email protected]> | 2010-11-07 23:27:08 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2010-11-07 23:27:08 +0000 |
| commit | 5837cd792ccd5862bd9de0a2b0909b580116aa90 (patch) | |
| tree | e78fcc4a7814033bebe1e77f038c874b4dfe76ea /components/rtgui/common/rtgui_system.c | |
| parent | 523980b43063d6c922cc359e545bedd2b863db2a (diff) | |
change the selection block to square in list_view icon mode.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1042 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/common/rtgui_system.c')
| -rw-r--r-- | components/rtgui/common/rtgui_system.c | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/components/rtgui/common/rtgui_system.c b/components/rtgui/common/rtgui_system.c index cb04189266..28071e6c28 100644 --- a/components/rtgui/common/rtgui_system.c +++ b/components/rtgui/common/rtgui_system.c @@ -104,7 +104,9 @@ static void rtgui_event_dump(rt_thread_t tid, rtgui_event_t* event) if (event->sender != RT_NULL) sender = event->sender->name; - if (event->type == RTGUI_EVENT_TIMER) + if ((event->type == RTGUI_EVENT_TIMER) || + (event->type == RTGUI_EVENT_UPDATE_BEGIN) || + (event->type == RTGUI_EVENT_UPDATE_END)) { /* don't dump timer event */ return ; @@ -127,6 +129,8 @@ static void rtgui_event_dump(rt_thread_t tid, rtgui_event_t* event) struct rtgui_event_kbd *ekbd = (struct rtgui_event_kbd*) event; if (ekbd->wid != RT_NULL) rt_kprintf("win: %s", ekbd->wid->title); + if (RTGUI_KBD_IS_UP(ekbd)) rt_kprintf(", up"); + else rt_kprintf(", down"); } break; @@ -324,25 +328,25 @@ rtgui_thread_t* rtgui_thread_self() return thread; } -void rtgui_thread_set_onidle(rtgui_idle_func onidle)
-{
- struct rtgui_thread* thread;
-
- thread = rtgui_thread_self();
- RT_ASSERT(thread != RT_NULL);
-
- thread->on_idle = onidle;
-}
-
-rtgui_idle_func rtgui_thread_get_onidle()
-{
- struct rtgui_thread* thread;
-
- thread = rtgui_thread_self();
- RT_ASSERT(thread != RT_NULL);
-
- return thread->on_idle;
-}
+void rtgui_thread_set_onidle(rtgui_idle_func onidle) +{ + struct rtgui_thread* thread; + + thread = rtgui_thread_self(); + RT_ASSERT(thread != RT_NULL); + + thread->on_idle = onidle; +} + +rtgui_idle_func rtgui_thread_get_onidle() +{ + struct rtgui_thread* thread; + + thread = rtgui_thread_self(); + RT_ASSERT(thread != RT_NULL); + + return thread->on_idle; +} extern rt_thread_t rt_thread_find(char* name); rt_thread_t rtgui_thread_get_server() |
