Changed textgrid's callback API; closes #31