Hook up to signal

This commit is contained in:
Greg Shuflin 2022-05-30 13:58:09 -07:00
parent e13df0eb72
commit 9e962ab9ac

View File

@ -19,6 +19,10 @@ fn build_ui(app: &Application) {
.margin_end(12)
.build();
button.connect_clicked(move |button| {
button.set_label("Hahaha! Gay!");
});
let window = ApplicationWindow::builder()
.application(app)
.title("Gamarjoba from GTK4")