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
37 lines
1.2 KiB
C
37 lines
1.2 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.
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include "plug-in-error.h"
|
|
|
|
|
|
/**
|
|
* gimp_plug_in_error_quark:
|
|
*
|
|
* This function is never called directly. Use GIMP_PLUG_IN_ERROR() instead.
|
|
*
|
|
* Return value: the #GQuark that defines the GimpPlugIn error domain.
|
|
**/
|
|
GQuark
|
|
gimp_plug_in_error_quark (void)
|
|
{
|
|
return g_quark_from_static_string ("gimp-plug-in-error-quark");
|
|
}
|