Commit dd97fe40 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

default to fully opaque black instead of fully transparent.

2006-03-27  Michael Natterer  <mitch@gimp.org>

	* libgimpcolor/gimprgb.c (gimp_param_rgb_init): default to fully
	opaque black instead of fully transparent.

	(gimp_param_spec_rgb): allow a NULL default value. Simply use the
	opaque black set in init().
parent b8c25287
2006-03-27 Michael Natterer <mitch@gimp.org>
* libgimpcolor/gimprgb.c (gimp_param_rgb_init): default to fully
opaque black instead of fully transparent.
(gimp_param_spec_rgb): allow a NULL default value. Simply use the
opaque black set in init().
2006-03-27 Michael Natterer <mitch@gimp.org>
 
* app/pdb/procedural_db.c (procedural_db_run_proc): return a
......
......@@ -542,7 +542,7 @@ gimp_param_rgb_init (GParamSpec *pspec)
{
GimpParamSpecRGB *cspec = GIMP_PARAM_SPEC_RGB (pspec);
gimp_rgba_set (&cspec->default_value, 0.0, 0.0, 0.0, 0.0);
gimp_rgba_set (&cspec->default_value, 0.0, 0.0, 0.0, 1.0);
}
static void
......@@ -639,12 +639,11 @@ gimp_param_spec_rgb (const gchar *name,
{
GimpParamSpecRGB *cspec;
g_return_val_if_fail (default_value != NULL, NULL);
cspec = g_param_spec_internal (GIMP_TYPE_PARAM_RGB,
name, nick, blurb, flags);
cspec->default_value = *default_value;
if (default_value)
cspec->default_value = *default_value;
return G_PARAM_SPEC (cspec);
}
......
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