[SourceEditor] Fixed old cairo API.