From 958633e4ff76b8a0291f627a8cd0e410b1299e5e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 16 Jul 2019 10:54:18 +1000 Subject: [PATCH] Pre-fill the filename propertly Saving a file for the first time is supposed to set the current name, not the file name. --- tuhigui/drawing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuhigui/drawing.py b/tuhigui/drawing.py index 3c95fc1..2c2cd37 100644 --- a/tuhigui/drawing.py +++ b/tuhigui/drawing.py @@ -65,7 +65,7 @@ class Drawing(Gtk.Box): Gtk.STOCK_SAVE, Gtk.ResponseType.OK)) dialog.set_do_overwrite_confirmation(True) - dialog.set_filename('Untitled.svg') + dialog.set_current_name('untitled.svg') filter_any = Gtk.FileFilter() filter_any.set_name('Any files')