mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
format code
This commit is contained in:
parent
8cc1d8697f
commit
ed2c65dc0a
@ -36,7 +36,7 @@ static ret_t tk_on_choose_file_result(file_chooser_t* chooser) {
|
|||||||
widget_set_text_utf8(filename, "aborted");
|
widget_set_text_utf8(filename, "aborted");
|
||||||
} else {
|
} else {
|
||||||
widget_set_text_utf8(cwd, chooser->cwd.str);
|
widget_set_text_utf8(cwd, chooser->cwd.str);
|
||||||
if(chooser->filename.str) {
|
if (chooser->filename.str) {
|
||||||
widget_set_text_utf8(filename, chooser->filename.str);
|
widget_set_text_utf8(filename, chooser->filename.str);
|
||||||
} else {
|
} else {
|
||||||
widget_set_text_utf8(filename, "");
|
widget_set_text_utf8(filename, "");
|
||||||
|
@ -329,7 +329,7 @@ static ret_t file_browser_view_reload(widget_t* widget) {
|
|||||||
wstr_t* str = &(item_child->text);
|
wstr_t* str = &(item_child->text);
|
||||||
wstr_format_time(str, FB_DATE_TIME_FORMAT, info->ctime);
|
wstr_format_time(str, FB_DATE_TIME_FORMAT, info->ctime);
|
||||||
}
|
}
|
||||||
|
|
||||||
item_child = widget_lookup_by_type(item, WIDGET_TYPE_CHECK_BUTTON, TRUE);
|
item_child = widget_lookup_by_type(item, WIDGET_TYPE_CHECK_BUTTON, TRUE);
|
||||||
if (item_child != NULL) {
|
if (item_child != NULL) {
|
||||||
widget_set_visible(item_child, file_browser_view->show_check_button, FALSE);
|
widget_set_visible(item_child, file_browser_view->show_check_button, FALSE);
|
||||||
|
@ -89,7 +89,7 @@ typedef struct _file_browser_view_t {
|
|||||||
* 是否为升序排序。
|
* 是否为升序排序。
|
||||||
*/
|
*/
|
||||||
bool_t sort_ascending;
|
bool_t sort_ascending;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {bool_t} show_check_button
|
* @property {bool_t} show_check_button
|
||||||
* @annotation ["set_prop","get_prop","readable","persitent","design","scriptable"]
|
* @annotation ["set_prop","get_prop","readable","persitent","design","scriptable"]
|
||||||
|
@ -91,8 +91,7 @@ ret_t file_chooser_choose(file_chooser_t* chooser) {
|
|||||||
widget_t* win = window_open(chooser->ui);
|
widget_t* win = window_open(chooser->ui);
|
||||||
|
|
||||||
widget_child_on(win, FILE_CHOOSER_OK, EVT_CLICK, file_choose_on_ok, chooser);
|
widget_child_on(win, FILE_CHOOSER_OK, EVT_CLICK, file_choose_on_ok, chooser);
|
||||||
widget_child_on(win, FILE_CHOOSER_CANCEL, EVT_CLICK,
|
widget_child_on(win, FILE_CHOOSER_CANCEL, EVT_CLICK, file_choose_on_click_to_close, chooser);
|
||||||
file_choose_on_click_to_close, chooser);
|
|
||||||
|
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user