This is the minimal necessary code to be able to start drawing
with cairo.
static gboolean on_expose_event (GtkWidget *widget, GdkEventExpose *event, game_t *game)
{
- printf ("I should be drawing something here\n");
+ cairo_t *cr;
+
+ cr = gdk_cairo_create (widget->window);
+
+ cairo_set_source_rgb (cr, 1, 0, 0); /* red */
+ cairo_rectangle (cr, 86, 66, 74, 103);
+ cairo_fill (cr);
+
+ cairo_destroy (cr);
return TRUE;
}