language: Use new extern syntax in signal handlers

This commit is contained in:
James Westman 2022-12-25 16:22:33 -06:00
parent 0b402db4d5
commit 122b049ce9
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
8 changed files with 21 additions and 10 deletions

View file

@ -1,10 +1,10 @@
using Gtk 4.0;
Entry {
activate => click(button);
activate => $click(button);
}
Button button {
clicked => on_button_clicked() swapped;
notify::visible => on_button_notify_visible();
clicked => $on_button_clicked() swapped;
notify::visible => $on_button_notify_visible();
}

View file

@ -2,7 +2,7 @@ using Gtk 4.0;
template TestTemplate : ApplicationWindow {
test-property: "Hello, world";
test-signal => on_test_signal();
test-signal => $on_test_signal();
}
Dialog {