diff options
| author | [email protected] <[email protected]> | 2010-09-09 23:07:22 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2010-09-09 23:07:22 +0000 |
| commit | 3c975d6922c5bd451c67f82a010786c979d20fac (patch) | |
| tree | 04be38f3aeec65e5dae96daca04b8b57162c3324 /components/rtgui/widgets/button.c | |
| parent | 814ac8fb22784e9eea0cf0d5528276450c85e868 (diff) | |
fix widget hide/enable issue and add on_changed in slider widget.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@899 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/widgets/button.c')
| -rw-r--r-- | components/rtgui/widgets/button.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/rtgui/widgets/button.c b/components/rtgui/widgets/button.c index 35f910e213..8d24d191fd 100644 --- a/components/rtgui/widgets/button.c +++ b/components/rtgui/widgets/button.c @@ -86,7 +86,7 @@ rt_bool_t rtgui_button_event_handler(struct rtgui_widget* widget, struct rtgui_e { struct rtgui_event_kbd* ekbd = (struct rtgui_event_kbd*) event; - if (RTGUI_WIDGET_IS_HIDE(widget)) RT_FALSE; + if (RTGUI_WIDGET_IS_HIDE(widget)) return RT_FALSE; if ((ekbd->key == RTGUIK_RETURN) || (ekbd->key == RTGUIK_SPACE)) { if (RTGUI_KBD_IS_DOWN(ekbd)) @@ -111,7 +111,7 @@ rt_bool_t rtgui_button_event_handler(struct rtgui_widget* widget, struct rtgui_e break; case RTGUI_EVENT_MOUSE_BUTTON: - if (RTGUI_WIDGET_IS_HIDE(widget)) RT_FALSE; + if (RTGUI_WIDGET_IS_HIDE(widget)) return RT_FALSE; { struct rtgui_event_mouse* emouse = (struct rtgui_event_mouse*)event; |
