mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
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
This commit is contained in:
@@ -168,13 +168,10 @@ rt_bool_t rtgui_slider_event_handler(struct rtgui_object *object, struct rtgui_e
|
||||
|
||||
#ifndef RTGUI_USING_SMALL_SIZE
|
||||
if (widget->on_key != RT_NULL)
|
||||
widget->on_key(RTGUI_OBJECT(widget), event);
|
||||
return widget->on_key(RTGUI_OBJECT(widget), event);
|
||||
else
|
||||
#endif
|
||||
{
|
||||
return rtgui_slider_onkey(slider, (struct rtgui_event_kbd *)event);
|
||||
}
|
||||
break;
|
||||
|
||||
case RTGUI_EVENT_MOUSE_BUTTON:
|
||||
if (!RTGUI_WIDGET_IS_ENABLE(widget) || RTGUI_WIDGET_IS_HIDE(widget)) return RT_FALSE;
|
||||
@@ -188,6 +185,9 @@ rt_bool_t rtgui_slider_event_handler(struct rtgui_object *object, struct rtgui_e
|
||||
rtgui_slider_onmouse(slider, (struct rtgui_event_mouse*)event);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
return rtgui_widget_event_handler(object, event);
|
||||
}
|
||||
|
||||
return RT_FALSE;
|
||||
|
||||
Reference in New Issue
Block a user