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

This commit is contained in:
kdau 2014-03-21 15:04:40 +01:00 committed by Jérôme Rapinat
parent 3812183a3e
commit ff5265605d

View File

@ -180,7 +180,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')