undo and redo with correct style in noteeditor

svn: r15777
This commit is contained in:
Benny Malengier
2010-08-19 16:10:53 +00:00
parent 5ad5cb17ae
commit 63d5ea6cb6
3 changed files with 123 additions and 18 deletions

View File

@@ -43,7 +43,7 @@ _LOG = logging.getLogger(".widgets.styledtextbuffer")
#-------------------------------------------------------------------------
import gobject
import gtk
from gui.widgets.undoablebuffer import UndoableBuffer
from gui.widgets.undoablebuffer import UndoableBufferStyled
from pango import WEIGHT_BOLD, STYLE_ITALIC, UNDERLINE_SINGLE
#-------------------------------------------------------------------------
@@ -226,7 +226,7 @@ class GtkSpellState(object):
# StyledTextBuffer class
#
#-------------------------------------------------------------------------
class StyledTextBuffer(UndoableBuffer):
class StyledTextBuffer(UndoableBufferStyled):
"""An extended TextBuffer for handling StyledText strings.
StyledTextBuffer is an interface between GRAMPS' L{StyledText} format