by having two booleans "export_backward" and "export_forward" in the api instead of just an "export" one that would destroy the "imported from" state. This change fixes the state of the "Overwrite" menu item, so it stays visible until the file got either saved or exported to another filename. This also reverts commita4beeecf2b, so Ctrl-S is always invokable even if invisible. (cherry picked from commit39c18e9a48)
36 lines
1.5 KiB
C
36 lines
1.5 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* file-save.h
|
|
*
|
|
* 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_H__
|
|
#define __FILE_SAVE_H__
|
|
|
|
|
|
GimpPDBStatusType file_save (Gimp *gimp,
|
|
GimpImage *image,
|
|
GimpProgress *progress,
|
|
const gchar *uri,
|
|
GimpPlugInProcedure *file_proc,
|
|
GimpRunMode run_mode,
|
|
gboolean change_saved_state,
|
|
gboolean export_backward,
|
|
gboolean export_forward,
|
|
GError **error);
|
|
|
|
|
|
#endif /* __FILE_SAVE_H__ */
|