diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-12-29 18:43:43 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-12-29 18:43:43 +0100 |
commit | 14bc7db2e07c5d1ccfb4d723c9dba395e6c93171 (patch) | |
tree | 7b00861348dedd18d3651537128bbe783dab364c /src/direct | |
parent | 1bf62485f701b52ae27433e3570ac24cd7da886f (diff) | |
parent | 67d142325abb0d9345baef77f00a047a7dc1eca3 (diff) |
Merge branch 'release/debian/0.32.4-1'HEADdebian/0.32.4-1master
Diffstat (limited to 'src/direct')
-rw-r--r-- | src/direct/DirectPhotoPage.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/direct/DirectPhotoPage.vala b/src/direct/DirectPhotoPage.vala index 50321e9..b79eb0b 100644 --- a/src/direct/DirectPhotoPage.vala +++ b/src/direct/DirectPhotoPage.vala @@ -411,18 +411,24 @@ public class DirectPhotoPage : EditingHostPage { string[] output_format_extensions = effective_export_format.get_properties().get_known_extensions(); Gtk.FileFilter output_format_filter = new Gtk.FileFilter(); + output_format_filter.set_filter_name(_("Supported image formats")); foreach(string extension in output_format_extensions) { string uppercase_extension = extension.up(); output_format_filter.add_pattern("*." + extension); output_format_filter.add_pattern("*." + uppercase_extension); } + Gtk.FileFilter all_files = new Gtk.FileFilter(); + all_files.add_pattern("*"); + all_files.set_filter_name(_("All files")); + var save_as_dialog = new Gtk.FileChooserNative(_("Save As"), AppWindow.get_instance(), Gtk.FileChooserAction.SAVE, Resources.OK_LABEL, Resources.CANCEL_LABEL); save_as_dialog.set_select_multiple(false); save_as_dialog.set_current_name(filename); save_as_dialog.set_current_folder(current_save_dir.get_path()); save_as_dialog.add_filter(output_format_filter); + save_as_dialog.add_filter(all_files); save_as_dialog.set_do_overwrite_confirmation(true); save_as_dialog.set_local_only(false); |