In size_allocate(), call gimp_ruler_make_pixmap() only if the widget was resized, not only moved around.