2007-08-07 Sven Neumann <sven@gimp.org> * app/plug-in/Makefile.am * app/plug-in/plug-in-error.[ch]: new files defining the GimpPlugIn error domain. * app/plug-in/plug-in-icc-profile.c (plug_in_icc_profile_apply_rgb): set an error code. * app/file/file-open.c (file_open_profile_apply_rgb): only do the profile conversion if color management is enabled. If the plug-in is missing, show a warning and disable color management. Fixes bug #434205. * modules/cdisplay_lcms.c (cdisplay_lcms_get_rgb_profile): check if we actually got a profile before checking its color space. * libgimpwidgets/gimpwidgetstypes.h: removed leftover typedef for GimpResolutionEntry. svn path=/trunk/; revision=23130
35 lines
1.1 KiB
C
35 lines
1.1 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 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 __PLUG_IN_ERROR_H__
|
|
#define __PLUG_IN_ERROR_H__
|
|
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_PLUG_IN_EXECUTION_FAILED,
|
|
GIMP_PLUG_IN_NOT_FOUND
|
|
} GimpPlugInErrorCode;
|
|
|
|
|
|
#define GIMP_PLUG_IN_ERROR (gimp_plug_in_error_quark ())
|
|
|
|
GQuark gimp_plug_in_error_quark (void) G_GNUC_CONST;
|
|
|
|
|
|
#endif /* __PLUG_IN_ERROR_H__ */
|