Bug 736907 - Compat mode for XCF

Desktop / GNOME / GIMP - Michael Natterer [gimp.org] - 20 October 2014 15:54 UTC

- add gimp_image_get,get_xcf_compat_mode()- add a compat toggle to GimpFileDialog which is shown and sensitive only for a save (not export), and if the image structure allows to save an old version at all. The button also has a tooltip which explains why it is sensitive and what it does- add "gboolean xcf_compat" to file_save_dialog_save_image()- in file_save_dialog_save_image(), call image_set_xcf_compat_mode(TRUE) only around the call to file_save() and set it to FALSE after saving- in xcf_save_invoker(), honor the image's XCF compat flag and save an RLE-compressed XCF if possible

The above is very convoluted and doesn't pass the "xcf_compat" boolean directly because we can't change the parameters of gimp-xcf-save, and because the gimp-xcf-save might be called indirectly.

950f753 Bug 736907 - Compat mode for XCF
app/actions/file-commands.c | 5 +--
app/core/gimpimage-private.h | 2 ++
app/core/gimpimage.c | 17 ++++++++++
app/core/gimpimage.h | 4 +++
app/dialogs/file-save-dialog.c | 8 +++++
app/dialogs/file-save-dialog.h | 1 +
app/widgets/gimpfiledialog.c | 68 ++++++++++++++++++++++++++++++++++++++--
app/widgets/gimpfiledialog.h | 3 ++
app/xcf/xcf.c | 9 +++++-
9 files changed, 112 insertions(+), 5 deletions(-)

Upstream: git.gnome.org


  • Share