fix compiling error on demo_listview.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@366 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
d71ec9b0bd
commit
6813e0cada
|
@ -5,7 +5,7 @@
|
|||
#include <rtgui/widgets/list_view.h>
|
||||
|
||||
static rtgui_workbench_t* workbench = RT_NULL;
|
||||
static rtgui_view_t* _view = RT_NULL;
|
||||
static rtgui_list_view_t* _view = RT_NULL;
|
||||
static rtgui_image_t* return_image = RT_NULL;
|
||||
|
||||
static void listitem_action(void* parameter)
|
||||
|
@ -39,12 +39,12 @@ static void return_action(void* parameter)
|
|||
{
|
||||
if (_view != RT_NULL)
|
||||
{
|
||||
rtgui_view_destroy(_view);
|
||||
rtgui_view_destroy(RTGUI_VIEW(_view));
|
||||
_view = RT_NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static const struct rtgui_list_item items[] =
|
||||
static struct rtgui_list_item items[] =
|
||||
{
|
||||
{"ÁбíÏî1", RT_NULL, listitem_action, (void*)1},
|
||||
{"ÁбíÏî2", RT_NULL, listitem_action, (void*)2},
|
||||
|
@ -72,7 +72,7 @@ static void open_btn_onbutton(rtgui_widget_t* widget, struct rtgui_event* event)
|
|||
rtgui_view_t* demo_listview_view(rtgui_workbench_t* workbench)
|
||||
{
|
||||
rtgui_rect_t rect;
|
||||
rtgui_list_view_t *view;
|
||||
rtgui_view_t *view;
|
||||
rtgui_button_t* open_btn;
|
||||
|
||||
view = demo_view(workbench, "ÁбíÊÓͼÑÝʾ");
|
||||
|
|
Loading…
Reference in New Issue