Files: xtragdk.h -- function prototypes for gdk_draw_arcs and gdk_draw_rectangles xtragdktypes.h -- struct for _GdkArc and a typedef to GdkArc xtragdkdraw.c -- implementation of gdk_draw_arcs and gdk_draw_rectangles Author: Dan Kressin (dkressin@acm.org) Purpose: GDK currently has wrappers for most of Xlib's drawing functions. Currently missing, however, are wrappers for X{Draw,Fill}Rectangles and X{Draw,Fill}Arcs (all plural). Why these were left out is beyond me. They are more efficient than multiple calls to their singular counterparts (gdk_draw_arc, and gdk_draw_rectangle) because (1) there is less function-calling overhead, and (2) there is less network traffic (they encapsulate many X server requests into one). Patch Method: To apply this patch, the code in each file needs to be added to the corresponding files in the GDK source distribution as follows: xtragdk.h -> gdk.h xtragdktypes.h -> gdktypes.h xtragdkdraw.c -> gdkdraw.c Thats it!