window: Use new async FileDialog API

GTK 4.10 deprecates the old GtkFileChooser* APIs in favor of a
new GtkFileDialog utility. This new utility uses async functions
instead of a `response` signal, so we can make use of Rust's
async/await patterns.
This commit is contained in:
Christopher Davis 2022-12-12 11:25:12 -05:00 • committed by Sophie Herold
parent 01bebfef38
commit ba77ee1a32
3 changed files with 243 additions and 208 deletions

View file

@ -25,13 +25,13 @@ features = ["gtk4"]
[dependencies.gtk]
package = "gtk4"
version = "0.5.1"
features = ["v4_8"]
version = "0.5.4"
features = ["v4_10"]
[dependencies.gio]
package = "gio"
version = "0.16.2"
features = ["v2_70"]
version = "0.16.3"
features = ["v2_74"]
[dependencies.adw]
package = "libadwaita"