antoyo / relm

Idiomatic, GTK+-based, GUI library, inspired by Elm, written in Rust
MIT License
2.41k stars 79 forks source link

examples: introduce glade_gladis example #293

Closed gagath closed 2 years ago

gagath commented 2 years ago

Gladis is a crate that aims at simplifying the use of Glade/UI files for Rust GTK crates. It allows to avoid the manual calls to Gtk::Builder by automatically importing the widgets from the declared structure that uses the #[derive(Gladis)] statement.

I have added a Relm example in the Gladis crate, but I think it would also make sense to use Gladis in the Relm crate that is demoing how to use Glade UI files.

Thanks in advance for reviewing.

antoyo commented 2 years ago

Hi. I'd actually prefer if it would be a new example as both ways are valid. Thanks.

gagath commented 2 years ago

Hello antoyo,

I'd actually prefer if it would be a new example as both ways are valid. Thanks.

Thanks for the quick feedback, I have adapted the review to create a new example instead of changing the existing one. Please let me know if this works for you!

antoyo commented 2 years ago

Sorry. I missed this somehow. Could you please rebase on master to see if that still works with the recent update to gtk-rs 0.15?

gagath commented 2 years ago

Hi, good news that relm is now using 0.15 instead of 0.14! I have updated gladis to also use 0.15 in the 2.x new version. The example has been rebased and works as expected.

antoyo commented 2 years ago

Thanks!