Commit dfaa0750 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

if compiling for GEGL >= 0.0.23, use double parameters with

2009-01-28  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpgegltool.c (gimp_param_spec_duplicate): if
	compiling for GEGL >= 0.0.23, use double parameters with
	gegl_color_get_rgba().


svn path=/branches/gimp-2-6/; revision=27966
parent b1d1e412
2009-01-28 Sven Neumann <sven@gimp.org>
* app/tools/gimpgegltool.c (gimp_param_spec_duplicate): if
compiling for GEGL >= 0.0.23, use double parameters with
gegl_color_get_rgba().
2009-01-26 Michael Natterer <mitch@gimp.org>
Merged from trunk:
......
......@@ -27,6 +27,7 @@ Overview of Changes from GIMP 2.6.4 to GIMP 2.6.5
Spanish (es)
Hindi (hi)
Russian (ru)
Simplified Chinese (zh_CN)
......
......@@ -557,10 +557,19 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
{
GeglColor *gegl_color;
GimpRGB gimp_color;
#if (GEGL_MAJOR_VERSION > 0 || \
(GEGL_MAJOR_VERSION == 0 && GEGL_MINOR_VERSION > 0) || \
(GEGL_MAJOR_VERSION == 0 && GEGL_MINOR_VERSION == 0 && GEGL_MICRO_VERSION >= 23))
gdouble r = 0.0;
gdouble g = 0.0;
gdouble b = 0.0;
gdouble a = 1.0;
#else
gfloat r = 0.0;
gfloat g = 0.0;
gfloat b = 0.0;
gfloat a = 1.0;
#endif
GValue value = { 0, };
g_value_init (&value, GEGL_TYPE_COLOR);
......
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