mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
9ff37e567e
commit
8d6684d46f
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user