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;
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>