wgui: new_pass attrib, refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
layout::WidgetID,
|
||||
parser::{parse_children, parse_widget_universal, style::parse_style, AttribPair, ParserContext, ParserFile},
|
||||
parser::{AttribPair, ParserContext, ParserFile, parse_children, parse_widget_universal, style::parse_style},
|
||||
widget::div::WidgetDiv,
|
||||
};
|
||||
|
||||
@@ -15,7 +15,7 @@ pub fn parse_widget_div<'a>(
|
||||
|
||||
let (widget, _) = ctx.layout.add_child(parent_id, WidgetDiv::create(), style)?;
|
||||
|
||||
parse_widget_universal(ctx, widget.id, attribs);
|
||||
parse_widget_universal(ctx, &widget, attribs);
|
||||
parse_children(file, ctx, node, widget.id)?;
|
||||
|
||||
Ok(widget.id)
|
||||
|
||||
Reference in New Issue
Block a user