GNOME Bugzilla – Bug 622774
gdk_draw_lines() and gdk_draw_points() allow npoints==0
Last modified: 2010-12-12 13:47:35 UTC
Created attachment 164660 [details] [review] patch I believe gdk_draw_lines() and gdk_draw_points() allow npoints==0, and doing nothing on no points it handy if constructing the args from a map or an array.
Looks good to me in general, only one small problem: G_LIKELY wasn't available in glib 2.0. So, can you wrap it in version guards or maybe just remove it?
Created attachment 175392 [details] [review] patch and test cases Ah, G_LIKELY, yep. Tempting to drop it, but I think I like it well enough to just have a fallback. I suppose a fallback could go in gperl-private.h or something if it was to be sprayed around a lot of places.
Thanks.