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:25 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-12-17 19:58:25 +0100
commit4cb46f4de4b881e5b1f65af017dca6f3917e55e5 (patch)
treefb359e210d2d9c30f5ad36a447ea29b62ae9bb56 /src/direct/DirectPhotoPage.vala
parent841f952294b349b2b8e2afb5305ce34a3b59bb4b (diff)
parentf5a0cee8ccecc7b6c6c2d8e9fb6f6eecd53531fe (diff)
Update upstream source from tag 'upstream/0.32.4'
Update to upstream version '0.32.4' with Debian dir 51798a6af1c9b7e48f979c020d72f3c5ddd964a6
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);