which adds an array of GdkSegments to the current path, and use it in gimpdisplayshell-draw.c instead of duplicating the code three times.
and move the stipple pattern creation function there.