baby's first rust program.
i should have started here: developer.gnome.org/documentat… ... but i didn't ask @alice early enough. :p
Beginners Tutorials
By following these tutorials you will learn the basics of GUI programming using GTK in different languages. The tutorial will walk you through increasingly complex examples and programming theory, ...GNOME Developer Documentation




Federico Mena Quintero
in reply to Steven Deobald • • •Steven Deobald
in reply to Federico Mena Quintero • • •@federicomena
i will fully admit i did not expect to be fighting the borrow checker just to pack two widgets into a box.
this may also be baby's last rust program.
Federico Mena Quintero
in reply to Steven Deobald • • •sigh, I think the way people expect GTK callbacks to work, versus the way Rust wants to think about memory ownership, is very much at odds. I hate the clone!() macro so much.
I think the solution is unidirectional data flow and functional reactive blah blah blah... as per my GUADEC talk :)
Steven Deobald
in reply to Federico Mena Quintero • • •jrb
in reply to Federico Mena Quintero • • •Federico Mena Quintero
in reply to jrb • • •