Adapt CELLS-GTK demo to draw primitives