mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 20:18:22 +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);
|
widget = widget_factory_create_widget(widget_factory(), type, parent, x, y, w, h);
|
||||||
if (widget == NULL) {
|
if (widget == NULL) {
|
||||||
log_debug("%s: not supported type %s\n", __FUNCTION__, type);
|
log_debug("%s: not supported type %s\n", __FUNCTION__, type);
|
||||||
assert(!"not supported");
|
widget = widget_factory_create_widget(widget_factory(), WIDGET_TYPE_VIEW, parent, x, y, w, h);
|
||||||
return RET_FAIL;
|
|
||||||
}
|
}
|
||||||
|
return_value_if_fail(widget != NULL, RET_OOM);
|
||||||
|
|
||||||
b->widget = widget;
|
b->widget = widget;
|
||||||
b->widget->loading = TRUE;
|
b->widget->loading = TRUE;
|
||||||
if (b->root == NULL) {
|
if (b->root == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user