7501: Notes always say 'no data exists for note' when saving

This commit is contained in:
kdau 2014-03-21 15:07:18 +01:00 committed by Jérôme Rapinat
parent dd5e1cc832
commit 53acb627bb

View File

@ -181,7 +181,8 @@ class StyledTextEditor(Gtk.TextView):
self.undo_disabled = self.textbuffer.undo_disabled # see bug 7097
self.textbuffer.connect('style-changed', self._on_buffer_style_changed)
self.textbuffer.connect('changed', self._on_buffer_changed)
GObject.GObject.__init__(self, buffer=self.textbuffer)
GObject.GObject.__init__(self)
self.set_buffer(self.textbuffer)
st_cont = self.get_style_context()
col = st_cont.lookup_color('link_color')