gimp/app/file/file-open.h
Michael Natterer 84ee76d5ee all functions return the opened image and the pdb status plus a GError
2002-04-19  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.[ch]: all functions return the opened image
	and the pdb status plus a GError now. Removed all g_message()
	calls from file_open_image(). Instead, display all error messages
	in file_open_with_proc_and_display() if it got no error return
	location passed.

	* app/app_procs.c
	* app/core/gimpimagefile.c
	* app/gui/file-commands.c
	* app/gui/file-open-dialog.c
	* app/widgets/gimpdnd.c
	* app/widgets/gimpdocumentview.c: changed accordingly.

	* app/gui/file-open-dialog.c: only treat the "entered_filename" as
	URI if it contains "://".
2002-04-19 14:09:53 +00:00

45 lines
2.1 KiB
C

/* The GIMP -- an 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 2 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __FILE_OPEN_H__
#define __FILE_OPEN_H__
GimpImage * file_open_image (Gimp *gimp,
const gchar *uri,
const gchar *entered_filename,
PlugInProcDef *file_proc,
GimpRunMode run_mode,
GimpPDBStatusType *status,
GError **error);
GimpImage * file_open_with_display (Gimp *gimp,
const gchar *uri,
GimpPDBStatusType *status,
GError **error);
GimpImage * file_open_with_proc_and_display (Gimp *gimp,
const gchar *uri,
const gchar *entered_filename,
PlugInProcDef *file_proc,
GimpPDBStatusType *status,
GError **error);
#endif /* __FILE_OPEN_H__ */