docs: Add examples for action widgets

This commit is contained in:
James Westman 2022-02-19 14:44:42 -06:00
parent cfa7278568
commit 8ce748e62b
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -388,3 +388,19 @@ Gtk.StringList
Gtk.StringList {
strings ["Hello, world!", _("Translated string")]
}
Gtk.Dialog and Gtk.InfoBar
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block::
Gtk.Dialog {
[action response=ok]
Gtk.Button ok_response {}
[action response=cancel]
Gtk.Button cancel_response {}
[action response=9]
Gtk.Button app_defined_response {}
}