Merge branch blueprint-compiler:main into main

This commit is contained in:
kotontrion 2025-03-02 15:26:42 +00:00
commit c1fbcef6d0
94 changed files with 850 additions and 232 deletions

View file

@ -0,0 +1,9 @@
using Gtk 4.0;
BoolFilter filter1 {
expression: expr true;
}
BoolFilter filter2 {
expression: bind filter1.expression;
}

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkBoolFilter" id="filter1">
<property name="expression">
<constant type="gboolean">true</constant>
</property>
</object>
<object class="GtkBoolFilter" id="filter2">
<property name="expression" bind-source="filter1" bind-property="expression" bind-flags="sync-create"/>
</object>
</interface>

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
Label {
label: bind "Hello, world!";
}

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkLabel">
<binding name="label">
<constant type="gchararray">Hello, world!</constant>
</binding>
</object>
</interface>

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
BoolFilter {
expression: expr item as <Entry>.visible;
}

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkBoolFilter">
<property name="expression">
<lookup name="visible" type="GtkEntry"></lookup>
</property>
</object>
</interface>

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
BoolFilter {
expression: expr $closure(item as <Entry>.visible) as <bool>;
}

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkBoolFilter">
<property name="expression">
<closure function="closure" type="gboolean">
<lookup name="visible" type="GtkEntry"></lookup>
</closure>
</property>
</object>
</interface>

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
BoolFilter {
expression: expr true;
}

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkBoolFilter">
<property name="expression">
<constant type="gboolean">true</constant>
</property>
</object>
</interface>

View file

@ -4,6 +4,7 @@ Box {
visible: bind box2.visible inverted;
orientation: bind box2.orientation;
spacing: bind box2.spacing no-sync-create;
tooltip-text: bind box2.tooltip-text bidirectional;
}
Box box2 {

View file

@ -10,6 +10,7 @@ corresponding .blp file and regenerate this file with blueprint-compiler.
<property name="visible" bind-source="box2" bind-property="visible" bind-flags="sync-create|invert-boolean"/>
<property name="orientation" bind-source="box2" bind-property="orientation" bind-flags="sync-create"/>
<property name="spacing" bind-source="box2" bind-property="spacing"/>
<property name="tooltip-text" bind-source="box2" bind-property="tooltip-text" bind-flags="sync-create|bidirectional"/>
</object>
<object class="GtkBox" id="box2">
<property name="spacing">6</property>

View file

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

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
Button obj {
clicked => $handler(obj) not-swapped;
}

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkButton" id="obj">
<signal name="clicked" handler="handler" swapped="False" object="obj"/>
</object>
</interface>

View file

@ -5,6 +5,6 @@ AboutDialog about {
authors: [
"Jane doe <jane-doe@email.com>",
"Jhonny D <jd@email.com>"
"Jhonny D <jd@email.com>",
];
}

View file

@ -3,6 +3,6 @@ using Gtk 4.0;
Label {
styles [
"class-1",
"class-2"
"class-2",
]
}