GTK.Ruler set_metric(int unit)
Either GTK.Pixels, GTK.Centimers or GTK.Inches. The default measure is GTK.Pixels.