Add Gtk.SizeGroup

This commit is contained in:
James Westman 2021-11-12 16:50:35 -06:00
parent b4d4877e07
commit 2224f0958c
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
9 changed files with 130 additions and 4 deletions

View file

@ -0,0 +1,9 @@
using Gtk 4.0;
using GObject 2.0;
SizeGroup {
mode: horizontal;
widgets: [object];
}
GObject.Object object {}

View file

@ -0,0 +1 @@
6,13,6,Cannot assign GObject.Object to Gtk.Widget

View file

@ -0,0 +1,7 @@
using Gtk 4.0;
using GObject 2.0;
SizeGroup {
mode: horizontal;
widgets: [object];
}

View file

@ -0,0 +1 @@
6,13,6,Could not find object with ID object

View file

@ -0,0 +1,9 @@
using Gtk 4.0;
SizeGroup {
mode: horizontal;
widgets: [label, button];
}
Label label {}
Button button {}

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkSizeGroup">
<property name="mode">horizontal</property>
<widgets>
<widget name="label"/>
<widget name="button"/>
</widgets>
</object>
<object class="GtkLabel" id="label"></object>
<object class="GtkButton" id="button"></object>
</interface>

View file

@ -103,6 +103,7 @@ class TestSamples(unittest.TestCase):
self.assert_sample("object_prop")
self.assert_sample("property")
self.assert_sample("signal")
self.assert_sample("size_group")
self.assert_sample("strings")
self.assert_sample("style")
self.assert_sample("template")
@ -125,5 +126,7 @@ class TestSamples(unittest.TestCase):
self.assert_sample_error("obj_prop_type")
self.assert_sample_error("property_dne")
self.assert_sample_error("signal_dne")
self.assert_sample_error("size_group_non_widget")
self.assert_sample_error("size_group_obj_dne")
self.assert_sample_error("two_templates")
self.assert_sample_error("using_invalid_namespace")