Fix to prevent duplicate tags

svn: r13842
This commit is contained in:
Doug Blank 2009-12-18 03:55:59 +00:00
parent 55ad4516a4
commit 383cf27b8b

View File

@ -196,7 +196,10 @@ class LinkTag(gtk.TextTag):
tag_table = buffer.get_tag_table()
self.set_property('foreground', "blue")
#self.set_property('underline', pango.UNDERLINE_SINGLE)
tag_table.add(self)
try:
tag_table.add(self)
except ValueError: # tag is already in tag table
pass
class GrampletWindow(ManagedWindow.ManagedWindow):
"""