4178: undo on note editor goes back to no text; added a reset method to styled text buffer and editor

svn: r15756
This commit is contained in:
Doug Blank
2010-08-16 23:25:07 +00:00
parent 21651501ca
commit fa09584578
3 changed files with 17 additions and 0 deletions

View File

@@ -382,6 +382,12 @@ class StyledTextEditor(gtk.TextView):
open_menu.show()
menu.prepend(open_menu)
def reset(self):
"""
Reset the undoable buffer
"""
self.textbuffer.reset()
# private methods
def _connect_signals(self):