gtk-rs-core
gtk-rs-core copied to clipboard
Implement FromValueOptional for OsString, PathBuf?
The GString does not necessarily contain UTF-8 data, so being able to convert to less stringent OsString/PathBuf types would help.
Good idea, and also SetValueOptional
. Do you want to send a PR?
I'll see if I can get to this later. Got to get my application working first before I tackle minor improvements ^^
Sure :) I'll otherwise do it in the next days, just let me know
Should probably also add some UTF-8 validation into the glib::GString
constructors so it fails early.
See https://github.com/gtk-rs/gtk3-rs/pull/326