gtk filedialog: use set_current_name to make suggested filenames work

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9359 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2004-12-08 22:55:41 +00:00
parent 9ff37e567e
commit 8d6684d46f
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-12-08 John Spray <spray_john@users.sourceforge.net>
* FileDialogPrivate.C: use Gtk::FileChooser.set_current_name
to make suggested filenames work when saving
2004-12-07 John Spray <spray_john@users.sourceforge.net>
* glade/: improve layouts, set spinbuttons to display 2

View File

@ -94,7 +94,10 @@ FileDialog::Result const FileDialog::Private::showChooser(string const & path,
}
if (!path.empty())
fileChooser_.set_filename(path);
fileChooser_.set_current_folder(path);
if (!suggested.empty())
fileChooser_.set_current_name(suggested);
fileChooser_.set_default_response(Gtk::RESPONSE_OK);
Result result;
result.first = FileDialog::Chosen;