d11221dc0d
Its possible to make rust structs for each widget and add those to the UI struct instead of going through GtkBuilder to access every widget. This, along with the previous commit, shows an easy pattern that can be followed to abstract the elements and refactor the codebase gradually. A similar pattern was also demonstated by Federico in his GUADEC 2018 talk "Patterns of refactoring C to Rust" [1]. I Highly recommened watching it. [1] https://www.youtube.com/watch?v=5mVMycYmoWE |
||
---|---|---|
.. | ||
po | ||
res | ||
src | ||
build.rs | ||
Cargo.toml |