--- GdkColor.xs 23 Jul 2007 07:50:20 +1000 1.21 +++ GdkColor.xs 19 Nov 2007 10:59:49 +1100 @@ -186,19 +186,18 @@ =cut GdkColor_own * -gdk_color_new (class, red, green, blue) +gdk_color_new (class, red, green, blue, pixel=0) guint16 red guint16 green guint16 blue + guint32 pixel PREINIT: GdkColor c; CODE: - /* pixel==0 for unallocated color is not enforced by gdk, but - * doing this hushes valgrind about using uninitialized values. */ - c.pixel = 0; c.red = red; c.green = green; c.blue = blue; + c.pixel = pixel; RETVAL = gdk_color_copy (&c); OUTPUT: RETVAL