signals: Support after keyword

This commit is contained in:
Gregor Niehl 2024-05-30 22:34:05 +00:00 committed by James Westman
parent 07e824d8e7
commit 25d08e56cb
4 changed files with 14 additions and 6 deletions

View file

@ -5,6 +5,6 @@ Entry {
}
Button button {
clicked => $on_button_clicked() swapped;
clicked => $on_button_clicked() swapped after;
notify::visible => $on_button_notify_visible();
}

View file

@ -10,7 +10,7 @@ corresponding .blp file and regenerate this file with blueprint-compiler.
<signal name="activate" handler="click" object="button"/>
</object>
<object class="GtkButton" id="button">
<signal name="clicked" handler="on_button_clicked" swapped="True"/>
<signal name="clicked" handler="on_button_clicked" swapped="True" after="True"/>
<signal name="notify::visible" handler="on_button_notify_visible"/>
</object>
</interface>