mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Remove PropertyBinding rule, just use Binding
This commit is contained in:
parent
abc4e5de65
commit
0a4b5d07a1
16 changed files with 100 additions and 179 deletions
5
tests/sample_errors/binding_flags.blp
Normal file
5
tests/sample_errors/binding_flags.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: bind $my_closure() as <Label> bidirectional;
|
||||
}
|
1
tests/sample_errors/binding_flags.err
Normal file
1
tests/sample_errors/binding_flags.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,40,13,Only bindings with a single lookup can have flags
|
5
tests/sample_errors/binding_object_not_found.blp
Normal file
5
tests/sample_errors/binding_object_not_found.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: bind something.other;
|
||||
}
|
1
tests/sample_errors/binding_object_not_found.err
Normal file
1
tests/sample_errors/binding_object_not_found.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,15,9,Could not find object with ID something
|
|
@ -1,9 +1,8 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
visible: bind box2.visible inverted;
|
||||
orientation: bind box2.orientation;
|
||||
spacing: bind box2.spacing no-sync-create;
|
||||
visible: bind-property box2.visible inverted;
|
||||
orientation: bind-property box2.orientation;
|
||||
}
|
||||
|
||||
Box box2 {
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
4,12,4,Use 'bind-property', introduced in blueprint 0.8.0, to use binding flags
|
||||
6,12,4,Use 'bind-property', introduced in blueprint 0.8.0, to use binding flags
|
||||
4,12,13,'bind-property' is no longer needed. Use 'bind' instead. (blueprint 0.8.2)
|
||||
5,16,13,'bind-property' is no longer needed. Use 'bind' instead. (blueprint 0.8.2)
|
|
@ -1,9 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
visible: bind-property box2.visible inverted;
|
||||
visible: bind box2.visible inverted;
|
||||
orientation: bind box2.orientation;
|
||||
spacing: bind-property box2.spacing no-sync-create;
|
||||
spacing: bind box2.spacing no-sync-create;
|
||||
}
|
||||
|
||||
Box box2 {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template $MyTemplate {
|
||||
object: bind-property template.object2;
|
||||
object: bind template.object2;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue