GNOME Bugzilla – Bug 632413
GdkCairo docs
Last modified: 2011-09-30 21:11:40 UTC
Created attachment 172572 [details] [review] doc patch Are the Gtk2::Gdk::Cairo::Context methods meant to be used with all kinds of Cairo::Context objects too? Is that in fact the usual way to draw from a pixbuf or pixmap onto a printer (Gtk2::PrintOperation stuff) etc? Perhaps a bit for the docs as attached. The args listed for ->rectangle come out in reverse order with current GenPod.pm, but I think that might be down to it rather than the pod.
Yes, this is indeed how these xsubs can also be used. The second way of calling ->rectangle(), however, is just for compatibility with Cairo::Context::rectangle(), and I thus prefer it not appearing in the docs. With this tweak made, I commited the patch. Thanks!
Created attachment 195264 [details] [review] 4-arg rectangle docs I think it'd be good to show the x,y,width,height too, so it's clear that can still be used on the gdk subclass. (It all gets pretty confusing, and the fact the superclass calling style still works in the subclass isn't supposed to be a secret is it :-)
Alright, convinced.