Change the way values work

Change the parsing for values to make them more reusable, in particular
for when I implement extensions.
This commit is contained in:
James Westman 2023-01-12 13:19:15 -06:00
parent 6938267952
commit 1df46b5a06
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
30 changed files with 707 additions and 291 deletions

View file

@ -1 +1 @@
4,3,21,Cannot assign Gtk.Label to Gtk.Adjustment
4,15,8,Cannot assign Gtk.Label to Gtk.Adjustment

View file

@ -0,0 +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

View file

@ -0,0 +1,11 @@
using Gtk 4.0;
Box {
visible: bind-property box2.visible inverted;
orientation: bind box2.orientation;
spacing: bind-property box2.spacing no-sync-create;
}
Box box2 {
spacing: 6;
}

View file

@ -0,0 +1,11 @@
using Gtk 4.0;
Box {
visible: bind-property box2.visible inverted;
orientation: bind-property box2.orientation;
spacing: bind-property box2.spacing no-sync-create;
}
Box box2 {
spacing: 6;
}

View file

@ -145,7 +145,6 @@ class TestSamples(unittest.TestCase):
def test_samples(self):
self.assert_sample("accessibility")
self.assert_sample("action_widgets")
self.assert_sample("binding")
self.assert_sample("child_type")
self.assert_sample("combo_box_text")
self.assert_sample("comments")
@ -163,6 +162,7 @@ class TestSamples(unittest.TestCase):
"parseable", skip_run=True
) # The image resource doesn't exist
self.assert_sample("property")
self.assert_sample("property_binding")
self.assert_sample("signal", skip_run=True) # The callback doesn't exist
self.assert_sample("size_group")
self.assert_sample("string_list")
@ -235,12 +235,12 @@ class TestSamples(unittest.TestCase):
self.assert_sample_error("two_templates")
self.assert_sample_error("uint")
self.assert_sample_error("using_invalid_namespace")
self.assert_sample_error("warn_old_bind")
self.assert_sample_error("warn_old_extern")
self.assert_sample_error("widgets_in_non_size_group")
def test_decompiler(self):
self.assert_decompile("accessibility_dec")
self.assert_decompile("binding")
self.assert_decompile("child_type")
self.assert_decompile("file_filter")
self.assert_decompile("flags")
@ -248,6 +248,7 @@ class TestSamples(unittest.TestCase):
self.assert_decompile("layout_dec")
self.assert_decompile("menu_dec")
self.assert_decompile("property")
self.assert_decompile("property_binding_dec")
self.assert_decompile("placeholder_dec")
self.assert_decompile("signal")
self.assert_decompile("strings")