Gimp/app/dialogs/file-save-dialog.h
Michael Natterer 39c18e9a48 app: make file_save() aware of the difference between overwrite and export
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 commit a4beeecf2b, so
Ctrl-S is always invokable even if invisible.
2012-05-18 18:57:58 +02:00

38 lines
1.7 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__
GtkWidget * file_save_dialog_new (Gimp *gimp,
gboolean export);
gboolean file_save_dialog_save_image (GimpProgress *progress_and_handler,
Gimp *gimp,
GimpImage *image,
const gchar *uri,
GimpPlugInProcedure *write_proc,
GimpRunMode run_mode,
gboolean save_a_copy,
gboolean export_backward,
gboolean export_forward,
gboolean verbose_cancel);
#endif /* __FILE_SAVE_DIALOG_H__ */