On Wed, 2006-09-13 at 13:04 -0400, Francis Kung wrote:
> Hi,
>
> The attached patch fixes gradients in cairo 1.2, but unfortunately it
> will break the build if compiled against cairo 1.0.
Tom pointed out the CAIRO_VERSION macro which can be used at
compile-time, and the attached patch (committed) uses it to keep
gradients working with both cairo 1.0.x and cairo 1.2.x.
Cheers,
Francis
2006-09-14 Francis Kung <[EMAIL PROTECTED]>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(gnu_java_awt_peer_gtk_CairoGraphics2D_setGradient): Updated constants
to
be compatible with Cairo 1.2.x.