From 9e962ab9ac4db2d1ba484e5948503c7d49fc0fe8 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Mon, 30 May 2022 13:58:09 -0700 Subject: [PATCH] Hook up to signal --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 7b09705..858248a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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")