1
From: kdau <bug#7501@gramps-project.org>
2
Date: Fri, 21 Mar 2014 15:04:40 +0100
3
Subject: Notes always say 'no data exists for note' when saving
6
Subject: 7501 - Notes always say 'no data exists for note' when saving
8
* gramps/gui/widgets/styledtexteditor.py: GObject constructor has been deprecated
10
Origin: upstream, http://sourceforge.net/p/gramps/source/ci/ff5265605d39fd6eaa1914caa7a494a86dd9007f/
11
Bug: https://gramps-project.org/bugs/view.php?id=7501
12
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747318
14
gramps/gui/widgets/styledtexteditor.py | 3 ++-
15
1 file changed, 2 insertions(+), 1 deletion(-)
17
diff --git a/gramps/gui/widgets/styledtexteditor.py b/gramps/gui/widgets/styledtexteditor.py
18
index a1c92db..d303404 100644
19
--- a/gramps/gui/widgets/styledtexteditor.py
20
+++ b/gramps/gui/widgets/styledtexteditor.py
21
@@ -179,7 +179,8 @@ class StyledTextEditor(Gtk.TextView):
22
self.textbuffer = UndoableStyledBuffer()
23
self.textbuffer.connect('style-changed', self._on_buffer_style_changed)
24
self.textbuffer.connect('changed', self._on_buffer_changed)
25
- GObject.GObject.__init__(self, buffer=self.textbuffer)
26
+ GObject.GObject.__init__(self)
27
+ self.set_buffer(self.textbuffer)
29
st_cont = self.get_style_context()
30
col = st_cont.lookup_color('link_color')