Fix to prevent duplicate tags
svn: r13842
This commit is contained in:
parent
55ad4516a4
commit
383cf27b8b
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user