[gnome-chess/arnaudb/wip/gtk4: 45/54] Adapt to FileChooser API.




commit 7946453810e371f27e9dc28f378c30ca8847e865
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Apr 7 10:36:13 2020 +0200

    Adapt to FileChooser API.
    
    TODO handle error.

 src/gnome-chess.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index a26c3bd..c84c528 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -2309,7 +2309,7 @@ Copyright © 2015–2016 Sahil Sareen""";
                                                  _("_Cancel"));
 
             if (game_file != null && game_file.get_path () != autosave_filename)
-                save_dialog.set_filename (game_file.get_path ());
+                save_dialog.set_file (game_file);
             else
                 save_dialog.set_current_name (/* Default filename for the save game dialog */
                                               _("Untitled Chess Game") + ".pgn");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]