GNOME Bugzilla – Bug 464847
Allow null dest argument in gdk_rectangle_intersect
Last modified: 2008-01-11 17:52:44 UTC
Xan Lopez wrote in bug 464528: Probably this should go in a different bug, but while we are at it... Recently I used gdk_rectangle_intersect just for its boolean return value without being interested at all in the actual intersecting area, but it has a g_return_val_if_fail (dest != NULL, FALSE), forcing you to pass a dummy variable. IMHO a NULL value should be allowed for dest.
Attachment 93308 [details] has his patch.
And he was unhappy about being stuck at 14 points...
The idea makes sense to me, and the patch looks fine.
Hum, should we mark these kind of relaxations / slight changes in docs? Say "as of 2.x, @dest can be %NULL"...
Should I add the extra note before committing then?
2007-09-06 Matthias Clasen <mclasen@redhat.com> * gdk/gdkrectangle.c (gdk_rectangle_intersect): Allow dest to be NULL. (#464528, Xan Lopez)