Rectangles are drawn with gdk_draw_rectangle() (Figure 19). The filled argument indicates whether to fill the rectangle; TRUE means to fill it.
#include <gdk/gdk.h>
void gdk_draw_rectangle(GdkDrawable* drawable, GdkGC* gc, gint filled, gint x, gint y, gint width, gint height);
void gdk_draw_rectangle
Figure 19. Drawing Rectangles