mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
Add dialog actions
This commit is contained in:
parent
bac008296a
commit
8ba898e354
10 changed files with 115 additions and 3 deletions
8
tests/samples/actions.blp
Normal file
8
tests/samples/actions.blp
Normal file
|
@ -0,0 +1,8 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Gtk.Dialog {
|
||||
[action response=1]
|
||||
Button {}
|
||||
[action response=cancel]
|
||||
Button cancel {}
|
||||
}
|
16
tests/samples/actions.ui
Normal file
16
tests/samples/actions.ui
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkDialog">
|
||||
<child type="action">
|
||||
<object class="GtkButton" id="__1"></object>
|
||||
</child>
|
||||
<child type="action">
|
||||
<object class="GtkButton" id="cancel"></object>
|
||||
</child>
|
||||
<action-widgets>
|
||||
<action-widget response="1">__1</action-widget>
|
||||
<action-widget response="cancel">cancel</action-widget>
|
||||
</action-widgets>
|
||||
</object>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue