diff --git a/Cargo.toml b/Cargo.toml index f3d27a5..a48fd77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,8 +15,8 @@ members = [ [dev-dependencies] rand = "0.8.5" -relm4 = "0.8.0" -relm4-components = "0.8.0" -tokio = { version = "1.36", features = ["rt", "macros", "time", "rt-multi-thread", "sync"] } -tracker = "0.2.1" +relm4 = "0.9.1" +relm4-components = "0.9.1" +tokio = { version = "1.40.0", features = ["rt", "macros", "time", "rt-multi-thread", "sync"] } +tracker = "0.2.2" clap = { version = "4.5.7", features = ["derive"] } diff --git a/examples/simple_manual.rs b/examples/simple_manual.rs index 931b6bd..a9b6766 100644 --- a/examples/simple_manual.rs +++ b/examples/simple_manual.rs @@ -77,13 +77,21 @@ impl SimpleComponent for AppModel { vbox.append(&dec_button); vbox.append(&label); - inc_button.connect_clicked(clone!(@strong sender => move |_| { - sender.input(AppInput::Increment); - })); + inc_button.connect_clicked(clone!( + #[strong] + sender, + move |_| { + sender.input(Msg::Increment); + } + )); - dec_button.connect_clicked(clone!(@strong sender => move |_| { - sender.input(AppInput::Decrement); - })); + dec_button.connect_clicked(clone!( + #[strong] + sender, + move |_| { + sender.input(Msg::Decrement); + } + )); let widgets = AppWidgets { label }; diff --git a/src/introduction.md b/src/introduction.md index 7e8e792..8c2f538 100644 --- a/src/introduction.md +++ b/src/introduction.md @@ -38,8 +38,8 @@ I also recommend reading the [gtk4-rs book](https://gtk-rs.org/gtk4-rs/git/book/ Add the packages you need to your `Cargo.toml`: ```toml -relm4 = "0.8.0" -relm4-components = "0.8.0" +relm4 = "0.9.1" +relm4-components = "0.9.1" ``` ## Issues and feedback