mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 19:18:53 +08:00
improve ui_builder_default_on_widget_start
This commit is contained in:
parent
2e6d54d7d4
commit
b4270e5cae
@ -40,10 +40,10 @@ static ret_t ui_builder_default_on_widget_start(ui_builder_t* b, const widget_de
|
||||
widget = widget_factory_create_widget(widget_factory(), type, parent, x, y, w, h);
|
||||
if (widget == NULL) {
|
||||
log_debug("%s: not supported type %s\n", __FUNCTION__, type);
|
||||
assert(!"not supported");
|
||||
return RET_FAIL;
|
||||
widget = widget_factory_create_widget(widget_factory(), WIDGET_TYPE_VIEW, parent, x, y, w, h);
|
||||
}
|
||||
|
||||
return_value_if_fail(widget != NULL, RET_OOM);
|
||||
|
||||
b->widget = widget;
|
||||
b->widget->loading = TRUE;
|
||||
if (b->root == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user