GNOME Bugzilla – Bug 614495
set|get_extend not working with Cairo::LinearGradient and Cairo::RadialGradient
Last modified: 2010-05-16 14:26:53 UTC
Created attachment 157617 [details] [review] patch The set|get_extend method is only defined for Cairo::Pattern of type Cairo::ImageSurface instead of for all Cairo::Pattern objects. patch attached I've added tests for all Cairo::Pattern subtypes, not sure it's really needed.
The current implementation follows <http://cairographics.org/manual/bindings-patterns.html>. But it does seem to make sense to call the extend methods on gradient patterns at least. I've taken this to the cairo list: <http://lists.cairographics.org/archives/cairo/2010-March/019643.html>. Let's see what they write.
A comment on the list and some more testing confirmed that you are indeed right, and that the manual is wrong. So committed your patch. Thanks. I also treated set_filter and get_filter similarly, for the same reasons.