mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00

This commit just changes our saving API (i.e. the GimpSaveProcedure class) to take an array of drawables as argument instead of a single drawable. It actually doesn't matter much for exporting as the whole API seems more or less bogus there and all formats plug-ins mostly care only whether they will merge/flatten all visible layers (the selected ones don't really matter) or if the format supports layers of some sort. It may be worth later strengthening a bit this whole logics, and maybe allow partial exports for instance. As for saving, it was not even looking at the passed GimpDrawable either and was simply re-querying the active layer anyway. Note that I don't implement the multi-selection saving in XCF yet in this commit. I only updated the API. The reason is that the current commit won't be backportable to gimp-2-10 because it is an API break. On the other hand, the code to save multi-selection can still be backported even though the save() API will only pass a single drawable (as I said anyway, this argument was mostly bogus until now, hence it doesn't matter much for 2.10 logics).
55 lines
2.1 KiB
C
55 lines
2.1 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpfile_pdb.h
|
|
*
|
|
* This library is free software: you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* NOTE: This file is auto-generated by pdbgen.pl */
|
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
#endif
|
|
|
|
#ifndef __GIMP_FILE_PDB_H__
|
|
#define __GIMP_FILE_PDB_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
GimpImage* gimp_file_load (GimpRunMode run_mode,
|
|
GFile *file);
|
|
GimpLayer* gimp_file_load_layer (GimpRunMode run_mode,
|
|
GimpImage *image,
|
|
GFile *file);
|
|
GimpLayer** gimp_file_load_layers (GimpRunMode run_mode,
|
|
GimpImage *image,
|
|
GFile *file,
|
|
gint *num_layers);
|
|
gboolean gimp_file_save (GimpRunMode run_mode,
|
|
GimpImage *image,
|
|
gint num_drawables,
|
|
const GimpItem **drawables,
|
|
GFile *file);
|
|
gboolean gimp_file_save_thumbnail (GimpImage *image,
|
|
GFile *file);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_FILE_PDB_H__ */
|