diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py
index 12266cdb3..cf605d05b 100644
--- a/src/DataViews/GrampletView.py
+++ b/src/DataViews/GrampletView.py
@@ -597,18 +597,19 @@ class GuiGramplet:
retval += text[i]
r += 1
i += 1
- self.set_text(retval)
+ offset = len(self.get_text())
+ self.append_text(retval)
for (a,b) in markup_pos["B"]:
- start = self.buffer.get_iter_at_offset(a)
- stop = self.buffer.get_iter_at_offset(b)
+ start = self.buffer.get_iter_at_offset(a + offset)
+ stop = self.buffer.get_iter_at_offset(b + offset)
self.buffer.apply_tag_by_name("bold", start, stop)
for (a,b) in markup_pos["I"]:
- start = self.buffer.get_iter_at_offset(a)
- stop = self.buffer.get_iter_at_offset(b)
+ start = self.buffer.get_iter_at_offset(a + offset)
+ stop = self.buffer.get_iter_at_offset(b + offset)
self.buffer.apply_tag_by_name("italic", start, stop)
for (a,b) in markup_pos["U"]:
- start = self.buffer.get_iter_at_offset(a)
- stop = self.buffer.get_iter_at_offset(b)
+ start = self.buffer.get_iter_at_offset(a + offset)
+ stop = self.buffer.get_iter_at_offset(b + offset)
self.buffer.apply_tag_by_name("underline", start, stop)
def set_use_markup(self, value):
diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/DefaultGramplets.py
index 1ae9892ed..4396a67d0 100644
--- a/src/plugins/DefaultGramplets.py
+++ b/src/plugins/DefaultGramplets.py
@@ -448,6 +448,7 @@ class PedigreeGramplet(Gramplet):
self.tooltip = _("Click name to make person active\n") + \
_("Right-click name to edit person")
self.max_generations = 100
+ self.set_use_markup(True)
def db_changed(self):
"""
@@ -507,8 +508,7 @@ class PedigreeGramplet(Gramplet):
self.append_text("\n")
elif what == "a":
self.append_text("o------")
- self.link(name_displayer.display_name(person.get_primary_name()),
- 'Person', person.handle)
+ self.render_text("%s" % name_displayer.display_name(person.get_primary_name()))
self.append_text("\n")
elif what == "m":
if len(family_list) > 0:
@@ -811,6 +811,7 @@ class NewsGramplet(Gramplet):
for match in matches:
text = text.replace("'''%s'''" % match, "%s" % match)
text = "News from www.gramps-project.org:\n\n" + text
+ self.clear_text()
self.set_use_markup(True)
self.render_text(text)