add methods for gtk TextBuffer and TextTag