Commit eeebd95e authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

implement the configure method and tell the user where this module can be

2005-06-24  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c: implement the configure method and tell
	the user where this module can be configured.
parent 88de3824
2005-06-24 Sven Neumann <sven@gimp.org>
* modules/cdisplay_lcms.c: implement the configure method and tell
the user where this module can be configured.
2005-06-24 Sven Neumann <sven@gimp.org>
* plug-ins/common/png.c: some code cleanup, no real changes.
......
......@@ -65,28 +65,29 @@ enum
};
static GType cdisplay_lcms_get_type (GTypeModule *module);
static void cdisplay_lcms_class_init (CdisplayLcmsClass *klass);
static void cdisplay_lcms_init (CdisplayLcms *lcms);
static void cdisplay_lcms_dispose (GObject *object);
static void cdisplay_lcms_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void cdisplay_lcms_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static void cdisplay_lcms_convert (GimpColorDisplay *display,
guchar *buf,
gint width,
gint height,
gint bpp,
gint bpl);
static void cdisplay_lcms_changed (GimpColorDisplay *display);
static void cdisplay_lcms_set_config (CdisplayLcms *lcms,
GimpColorConfig *config);
static GType cdisplay_lcms_get_type (GTypeModule *module);
static void cdisplay_lcms_class_init (CdisplayLcmsClass *klass);
static void cdisplay_lcms_init (CdisplayLcms *lcms);
static void cdisplay_lcms_dispose (GObject *object);
static void cdisplay_lcms_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void cdisplay_lcms_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static GtkWidget * cdisplay_lcms_configure (GimpColorDisplay *display);
static void cdisplay_lcms_convert (GimpColorDisplay *display,
guchar *buf,
gint width,
gint height,
gint bpp,
gint bpl);
static void cdisplay_lcms_changed (GimpColorDisplay *display);
static void cdisplay_lcms_set_config (CdisplayLcms *lcms,
GimpColorConfig *config);
static cmsHPROFILE cdisplay_lcms_get_display_profile (CdisplayLcms *lcms,
GimpColorConfig *config);
......@@ -165,6 +166,7 @@ cdisplay_lcms_class_init (CdisplayLcmsClass *klass)
display_class->name = _("Color Management");
display_class->help_id = "gimp-colordisplay-lcms";
display_class->configure = cdisplay_lcms_configure;
display_class->convert = cdisplay_lcms_convert;
display_class->changed = cdisplay_lcms_changed;
......@@ -226,6 +228,21 @@ cdisplay_lcms_set_property (GObject *object,
}
}
static GtkWidget *
cdisplay_lcms_configure (GimpColorDisplay *display)
{
return g_object_new (GTK_TYPE_LABEL,
"label", _("This module takes its configuration "
"from the <i>Color Management</i> "
"section in the Preferences dialog."),
"use-markup", TRUE,
"justify", GTK_JUSTIFY_LEFT,
"wrap", TRUE,
"xalign", 0.5,
"yalign", 0.5,
NULL);
}
static void
cdisplay_lcms_convert (GimpColorDisplay *display,
guchar *buf,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment