mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add Gtk.SizeGroup
This commit is contained in:
parent
b4d4877e07
commit
2224f0958c
9 changed files with 130 additions and 4 deletions
9
tests/samples/size_group.blp
Normal file
9
tests/samples/size_group.blp
Normal file
|
@ -0,0 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
SizeGroup {
|
||||
mode: horizontal;
|
||||
widgets: [label, button];
|
||||
}
|
||||
|
||||
Label label {}
|
||||
Button button {}
|
13
tests/samples/size_group.ui
Normal file
13
tests/samples/size_group.ui
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue