From 92a50c838d8ca2ae4027fd77b71db12fb52d86e3 Mon Sep 17 00:00:00 2001 From: "chaos.proton@gmail.com" Date: Fri, 20 Jul 2012 12:37:56 +0000 Subject: sync with RTGUI c074ff2898b9e Full log is in GitHub. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2222 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/rtgui/widgets/button.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components/rtgui/widgets/button.c') diff --git a/components/rtgui/widgets/button.c b/components/rtgui/widgets/button.c index aab1333b56..2a7571e392 100644 --- a/components/rtgui/widgets/button.c +++ b/components/rtgui/widgets/button.c @@ -62,7 +62,7 @@ rt_bool_t rtgui_button_event_handler(struct rtgui_object* object, struct rtgui_e struct rtgui_widget *widget; struct rtgui_button *btn; - RT_ASSERT(widget != RT_NULL); + RT_ASSERT(object != RT_NULL); RT_ASSERT(event != RT_NULL); widget = RTGUI_WIDGET(object); @@ -189,6 +189,8 @@ rt_bool_t rtgui_button_event_handler(struct rtgui_object* object, struct rtgui_e return RT_TRUE; } + default: + return rtgui_widget_event_handler(object, event); } return RT_FALSE; -- cgit v1.3.1