mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
WIP: List item factories
The current problem is that types aren't inferred properly for GtkListItem.item (it's always considered a GObject, and Gtk needs more type information than that, and cast expressions don't exist yet).
This commit is contained in:
parent
fdf91dc08e
commit
7077a76ba0
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ class ListItemFactory(AstNode, Scope):
|
||||||
for obj in self.iterate_children_recursive()
|
for obj in self.iterate_children_recursive()
|
||||||
if obj.tokens["id"] is not None
|
if obj.tokens["id"] is not None
|
||||||
},
|
},
|
||||||
"item": ScopeVariable("item", self.gir_class, emit_item_xml),
|
"item": ScopeVariable("item", self.item_type, emit_item_xml),
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<binding name="label">
|
<binding name="label">
|
||||||
<lookup name="label">
|
<lookup name="label">
|
||||||
<lookup name="group">
|
<lookup name="group">
|
||||||
<lookup name="item">GtkListItem</lookup>
|
<lookup name="item" type="GtkCheckButton">GtkListItem</lookup>
|
||||||
</lookup>
|
</lookup>
|
||||||
</lookup>
|
</lookup>
|
||||||
</binding>
|
</binding>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue