From 95e2dd509ca13243da2dda06e412a81d1f2aa01f Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Mon, 4 Jan 2010 06:52:32 +0000 Subject: [PATCH] fix textbox caret timeout function declaration. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@282 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- rtgui/include/rtgui/widgets/textbox.h | 1 - rtgui/widgets/textbox.c | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rtgui/include/rtgui/widgets/textbox.h b/rtgui/include/rtgui/widgets/textbox.h index e78a88032..5ee22ca4d 100644 --- a/rtgui/include/rtgui/widgets/textbox.h +++ b/rtgui/include/rtgui/widgets/textbox.h @@ -15,7 +15,6 @@ #define __RTGUI_TEXTBOX_H__ #include -#include #include /** Gets the type of a textbox */ diff --git a/rtgui/widgets/textbox.c b/rtgui/widgets/textbox.c index 63b4483a1..0bc25acac 100644 --- a/rtgui/widgets/textbox.c +++ b/rtgui/widgets/textbox.c @@ -12,8 +12,9 @@ * 2009-10-16 Bernard first version */ #include -#include #include +#include +#include #ifndef _WIN32 #include @@ -26,7 +27,7 @@ static void rtgui_textbox_onkey(struct rtgui_textbox* box, struct rtgui_event_kb static rt_bool_t rtgui_textbox_onfocus(struct rtgui_widget* widget, struct rtgui_event* event); static rt_bool_t rtgui_textbox_onunfocus(struct rtgui_widget* widget, struct rtgui_event* event); -static void _rtgui_textbox_caret_timeout(void *parameter) +static void _rtgui_textbox_caret_timeout(struct rtgui_timer* timer, void* parameter) { rtgui_textbox_t* box;