update list item callback action.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@864 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong 2010-08-18 09:55:01 +00:00
parent 0c31a7c3ae
commit c188bba485
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ static rtgui_list_view_t* _view = RT_NULL;
static rtgui_image_t* return_image = RT_NULL; static rtgui_image_t* return_image = RT_NULL;
/* 列表项的动作函数 */ /* 列表项的动作函数 */
static void listitem_action(void* parameter) static void listitem_action(rtgui_widget_t *widget, void* parameter)
{ {
char label_text[32]; char label_text[32];
rtgui_win_t *win; rtgui_win_t *win;
@ -46,7 +46,7 @@ static void listitem_action(void* parameter)
} }
/* 返回功能的动作函数 */ /* 返回功能的动作函数 */
static void return_action(void* parameter) static void return_action(rtgui_widget_t* widget, void* parameter)
{ {
rtgui_view_end_modal(RTGUI_VIEW(_view), RTGUI_MODAL_OK); rtgui_view_end_modal(RTGUI_VIEW(_view), RTGUI_MODAL_OK);
} }

View File

@ -14,7 +14,7 @@ static rtgui_workbench_t* workbench = RT_NULL;
static rtgui_list_view_t* _view = RT_NULL; static rtgui_list_view_t* _view = RT_NULL;
/* 列表项的动作函数 */ /* 列表项的动作函数 */
static void listitem_action(void* parameter) static void listitem_action(rtgui_widget_t* widget, void* parameter)
{ {
char label_text[32]; char label_text[32];
rtgui_win_t *win; rtgui_win_t *win;
@ -45,7 +45,7 @@ static void listitem_action(void* parameter)
} }
/* 返回功能的动作函数 */ /* 返回功能的动作函数 */
static void return_action(void* parameter) static void return_action(rtgui_widget_t* widget, void* parameter)
{ {
/* 退出模态显示 */ /* 退出模态显示 */
rtgui_view_end_modal(RTGUI_VIEW(_view), RTGUI_MODAL_OK); rtgui_view_end_modal(RTGUI_VIEW(_view), RTGUI_MODAL_OK);