mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix bindings with no flags
This commit is contained in:
parent
2a18273c80
commit
3f55aae7de
3 changed files with 6 additions and 3 deletions
|
@ -74,10 +74,10 @@ def parse(tokens) -> T.Tuple[ast.UI, T.Optional[MultipleErrors]]:
|
|||
UseIdent("bind_source").expected("the ID of a source object to bind from"),
|
||||
Op("."),
|
||||
UseIdent("bind_property").expected("a property name to bind from"),
|
||||
AnyOf(
|
||||
ZeroOrMore(AnyOf(
|
||||
Sequence(Keyword("sync-create"), UseLiteral("sync_create", True)),
|
||||
Sequence(Keyword("after"), UseLiteral("after", True)),
|
||||
),
|
||||
)),
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ using Gtk 4.0;
|
|||
|
||||
Box {
|
||||
visible: bind box2.visible sync-create;
|
||||
orientation: bind box2.orientation;
|
||||
}
|
||||
|
||||
Box box2 {}
|
||||
Box box2 {
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkBox">
|
||||
<property name="visible" bind-source="box2" bind-property="visible" bind-flags="sync-create"/>
|
||||
<property name="orientation" bind-source="box2" bind-property="orientation"/>
|
||||
</object>
|
||||
<object class="GtkBox" id="box2"></object>
|
||||
</interface>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue