summaryrefslogtreecommitdiff
path: root/src/direct/DirectPhotoPage.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-12-17 19:58:04 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-12-17 19:58:04 +0100
commitf5a0cee8ccecc7b6c6c2d8e9fb6f6eecd53531fe (patch)
tree4fe410ce27a30bc752d350aa042dae8fd042d0a1 /src/direct/DirectPhotoPage.vala
parent87ba373882f475f02a524a120b59ea9fcccf14e5 (diff)
New upstream version 0.32.4upstream/0.32.4
Diffstat (limited to 'src/direct/DirectPhotoPage.vala')
-rw-r--r--src/direct/DirectPhotoPage.vala6
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);