Hook up to signal
This commit is contained in:
parent
e13df0eb72
commit
9e962ab9ac
@ -19,6 +19,10 @@ fn build_ui(app: &Application) {
|
|||||||
.margin_end(12)
|
.margin_end(12)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
button.connect_clicked(move |button| {
|
||||||
|
button.set_label("Hahaha! Gay!");
|
||||||
|
});
|
||||||
|
|
||||||
let window = ApplicationWindow::builder()
|
let window = ApplicationWindow::builder()
|
||||||
.application(app)
|
.application(app)
|
||||||
.title("Gamarjoba from GTK4")
|
.title("Gamarjoba from GTK4")
|
||||||
|
Loading…
Reference in New Issue
Block a user