diff options
| author | [email protected] <[email protected]> | 2010-08-23 23:46:38 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2010-08-23 23:46:38 +0000 |
| commit | 6a2c61e9800d9f0761ae42f4d80e1e3e710196ee (patch) | |
| tree | 4bdf7d39de7d83502e1b2b2fb68678c7a566978d /components | |
| parent | 4f6e6dab8ae1463c13874490077f72b529346692 (diff) | |
fix compiling error.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@879 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/rtgui/include/rtgui/rtgui.h | 2 | ||||
| -rw-r--r-- | components/rtgui/widgets/checkbox.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/components/rtgui/include/rtgui/rtgui.h b/components/rtgui/include/rtgui/rtgui.h index 353e3b7656..fe69610b15 100644 --- a/components/rtgui/include/rtgui/rtgui.h +++ b/components/rtgui/include/rtgui/rtgui.h @@ -31,7 +31,7 @@ typedef struct rtgui_panel rtgui_panel_t; typedef struct rtgui_win rtgui_win_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 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 { diff --git a/components/rtgui/widgets/checkbox.c b/components/rtgui/widgets/checkbox.c index fcd98b49f7..1a8d735f24 100644 --- a/components/rtgui/widgets/checkbox.c +++ b/components/rtgui/widgets/checkbox.c @@ -88,7 +88,8 @@ rt_bool_t rtgui_checkbox_event_handler(struct rtgui_widget* widget, struct rtgui #endif
if (box->on_button != RT_NULL)
{
- return box->on_button(widget, event);
+ box->on_button(widget, event);
+ return RT_TRUE;
}
}
|
