The cairo_extend_t enum does not include a CAIRO_EXTEND_PAD value in cairo
versions from 1.0 branch, it was added only in the 1.1 development branch.
Trying to use CAIRO_EXTEND_PAD in cairomm/enums.h causes a build failure when
building against a released cairo.
Created attachment 5112 [details] [review]
stop using CAIRO_EXTEND_PAD in enums.h
Fixes the problem when building against cairo 1.0.4.
Admittedly, this looks quite ugly, but it should do the right thing and enable
EXTEND_PAD when building against cairo >= 1.1.1.
It's not problem if a non-released cairomm needs a non-released cairo. Is this a
problem with any cairomm tarball release?
That must have slipped in when I wrapped the enums in the Cairo namespace.
There's no tarball affected right now, but I sent out a mail on the mailing list
about making another tarball release (to benefit people trying to get this into
Fedora), so this enum should really be backed out before that happens.
I've committed this. I'm not a huge fan of the conditional #if statements, but
I left them in anyway.