fix compiling error.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@879 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2010-08-23 23:46:38 +00:00
parent 4f6e6dab8a
commit 6a2c61e980
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ typedef struct rtgui_panel rtgui_panel_t;
typedef struct rtgui_win rtgui_win_t; typedef struct rtgui_win rtgui_win_t;
typedef struct rtgui_workbench rtgui_workbench_t; typedef struct rtgui_workbench rtgui_workbench_t;
typedef rt_bool_t (*rtgui_event_handler_ptr)(struct rtgui_widget* widget, struct rtgui_event* event); typedef rt_bool_t (*rtgui_event_handler_ptr)(struct rtgui_widget* widget, struct rtgui_event* event);
typedef void (*rtgui_onbutton_func_t)(struct rtgui_widget* widget, rtgui_event_t *event); typedef void (*rtgui_onbutton_func_t)(struct rtgui_widget* widget, struct rtgui_event* event);
struct rtgui_point struct rtgui_point
{ {

View File

@ -88,7 +88,8 @@ rt_bool_t rtgui_checkbox_event_handler(struct rtgui_widget* widget, struct rtgui
#endif #endif
if (box->on_button != RT_NULL) if (box->on_button != RT_NULL)
{ {
return box->on_button(widget, event); box->on_button(widget, event);
return RT_TRUE;
} }
} }