
- 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.
43 lines
1.8 KiB
C
43 lines
1.8 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __FILE_SAVE_DIALOG_H__
|
|
#define __FILE_SAVE_DIALOG_H__
|
|
|
|
|
|
#define FILE_SAVE_RESPONSE_OTHER_DIALOG -23
|
|
|
|
|
|
GtkWidget * file_save_dialog_new (Gimp *gimp,
|
|
gboolean export);
|
|
|
|
gboolean file_save_dialog_save_image (GimpProgress *progress_and_handler,
|
|
Gimp *gimp,
|
|
GimpImage *image,
|
|
GFile *file,
|
|
GimpPlugInProcedure *write_proc,
|
|
GimpRunMode run_mode,
|
|
gboolean save_a_copy,
|
|
gboolean export_backward,
|
|
gboolean export_forward,
|
|
gboolean xcf_compat,
|
|
gboolean verbose_cancel);
|
|
|
|
|
|
|
|
#endif /* __FILE_SAVE_DIALOG_H__ */
|