4 ms·
GTK deprecated Glade, so it's really not the fault of the Rust bindings. But to be honest, Glade's only useful if the language doesn't have good syntax for crea
by mmstick76 5y ago
GTK deprecated Glade, so it's really not the fault of the Rust bindings. But to be honest, Glade's only useful if the language doesn't have good syntax for creating widgets defining properties on those widgets. Creating GTK applications purely in C is a nightmare. Vala makes it manageable. Rust also perfects it with tools like https://docs.rs/relm4-macros/latest/relm4_macros/attr.widget.html https://docs.rs/relm4-macros/latest/relm4_macros/attr.widget...
- smoldesu 5y agoIf that's perfect, then I'm a monkey's uncle. It's definitely more code and less ergonomic than the previous procedural methods. You can also see Rust's syntax bursting at the seams when they declare widgets...
- mmstick76 5y agoif you're writing an application, it's generally ideal to have everything declared consistently in the same language. I'd personally rather not have to edit XML files by hand, and try to shoehorn XML-declared widgets into a Rust application.