mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add Adw.MessageDialog responses extension
This commit is contained in:
parent
749ee03e86
commit
0cf9a8e4fc
7 changed files with 221 additions and 14 deletions
10
tests/samples/responses.blp
Normal file
10
tests/samples/responses.blp
Normal file
|
@ -0,0 +1,10 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
Adw.MessageDialog {
|
||||
responses [
|
||||
cancel: _("Cancel"),
|
||||
discard: _("Discard") destructive,
|
||||
save: "Save" suggested disabled,
|
||||
]
|
||||
}
|
11
tests/samples/responses.ui
Normal file
11
tests/samples/responses.ui
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="AdwMessageDialog">
|
||||
<responses>
|
||||
<response id="cancel" translatable="true">Cancel</response>
|
||||
<response id="discard" translatable="true" appearance="destructive">Discard</response>
|
||||
<response id="save" enabled="false" appearance="suggested">Save</response>
|
||||
</responses>
|
||||
</object>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue