Pre-fill the filename propertly

Saving a file for the first time is supposed to set the current name, not the
file name.
pull/145/head
Peter Hutterer 2019-07-16 10:54:18 +10:00
parent 293b64c1f3
commit 958633e4ff
1 changed files with 1 additions and 1 deletions

View File

@ -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')