gtk-rs / gtk3-rs

Rust bindings for GTK 3
https://gtk-rs.org
MIT License
508 stars 90 forks source link

gio::File::for_path argument should be of type Option<...> #608

Closed A6GibKm closed 3 years ago

A6GibKm commented 3 years ago

Following the docs https://developer.gnome.org/gio/stable/GFile.html#g-file-new-tmp, the argument can be set as null when one does not care about the specific file name, in https://gtk-rs.org/gtk-rs-core/git/docs/gio/struct.File.html#method.for_path it even says that the function takes None for this purpose but the function does not take a Option<...> parameter.

A6GibKm commented 3 years ago

whoops this was for core