[graphite2] "Update to new API" Part of patch from Martin Hosken. I believe he knows what he's doing :).