mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
tests: add tests for signal's object attribute
This commit is contained in:
parent
4d3c2569c4
commit
492b73bc47
5 changed files with 16 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Button {
|
||||
Entry {
|
||||
activate => click(button);
|
||||
}
|
||||
|
||||
Button button {
|
||||
clicked => on_button_clicked() swapped;
|
||||
notify::visible => on_button_notify_visible();
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkButton">
|
||||
<object class="GtkEntry">
|
||||
<signal name="activate" handler="click" object="button"/>
|
||||
</object>
|
||||
<object class="GtkButton" id="button">
|
||||
<signal name="clicked" handler="on_button_clicked" swapped="true"/>
|
||||
<signal name="notify::visible" handler="on_button_notify_visible"/>
|
||||
</object>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue