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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user