diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2026-03-09 18:19:48 +0100 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2026-03-09 18:19:48 +0100 |
| commit | b11befe1c9ea84969ebd418e96f7209b772b58d0 (patch) | |
| tree | 4cee94cb12ad4dd24253c2a111b87577f50ed80d /src/dialogs/ExportDialog.vala | |
| parent | d048b2c970f6182a2201b5ba6c29d0d155abc22b (diff) | |
| parent | 8656a544ddcf098e10df1430eecb75902dbc7999 (diff) | |
Merge branch 'release/debian/0.32.15-1'HEADdebian/0.32.15-1master
Diffstat (limited to 'src/dialogs/ExportDialog.vala')
| -rw-r--r-- | src/dialogs/ExportDialog.vala | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/dialogs/ExportDialog.vala b/src/dialogs/ExportDialog.vala index 5a61dc4..1f0a581 100644 --- a/src/dialogs/ExportDialog.vala +++ b/src/dialogs/ExportDialog.vala @@ -71,7 +71,7 @@ public class ExportDialog : Gtk.Dialog { format_combo = new Gtk.ComboBoxText(); format_add_option(UNMODIFIED_FORMAT_LABEL); format_add_option(CURRENT_FORMAT_LABEL); - foreach (PhotoFileFormat format in PhotoFileFormat.get_writeable()) { + foreach (PhotoFileFormat format in PhotoFileFormat.get_image_writeable()) { format_add_option(format.get_properties().get_user_visible_name()); } @@ -144,7 +144,7 @@ public class ExportDialog : Gtk.Dialog { selection_ticker++; } - error("format_set_active_text: text '%s' isn't in combo box", text); + critical("format_set_active_text: text '%s' isn't in combo box", text); } private PhotoFileFormat get_specified_format() { @@ -153,7 +153,7 @@ public class ExportDialog : Gtk.Dialog { index = NUM_SPECIAL_FORMATS; index -= NUM_SPECIAL_FORMATS; - PhotoFileFormat[] writeable_formats = PhotoFileFormat.get_writeable(); + PhotoFileFormat[] writeable_formats = PhotoFileFormat.get_image_writeable(); return writeable_formats[index]; } @@ -276,7 +276,7 @@ public class ExportDialog : Gtk.Dialog { if (format_combo.get_active_text() == UNMODIFIED_FORMAT_LABEL) { // if the user wishes to export the media unmodified, then we just copy the original - // files, so parameterizing size, quality, etc. is impossible -- these are all + // files, so parameterize size, quality, etc. is impossible -- these are all // just as they are in the original file. In this case, we set the scale constraint to // original and lock out all the controls constraint_combo.set_active(0); /* 0 == original size */ @@ -303,7 +303,9 @@ public class ExportDialog : Gtk.Dialog { constraint_combo.set_sensitive(true); bool jpeg = get_specified_format() == PhotoFileFormat.JFIF; quality_combo.sensitive = !original && jpeg; - export_metadata.sensitive = true; + + export_metadata.sensitive = get_specified_format().can_write_metadata(); + export_metadata.active = get_specified_format().can_write_metadata(); } } |
