TypeError: GObject.__init__() takes exactly 0 arguments (1 given); see mailing list (Benny)

svn: r20691
This commit is contained in:
Jérôme Rapinat 2012-11-21 19:49:22 +00:00
parent a34af94a40
commit 7deae0a996

View File

@ -694,7 +694,7 @@ class PluginTrace(ManagedWindow):
#-------------------------------------------------------------------------
class LinkTag(Gtk.TextTag):
def __init__(self, link, buffer):
GObject.GObject.__init__(self, link)
GObject.GObject.__init__(self, name=link)
tag_table = buffer.get_tag_table()
self.set_property('foreground', "#0000ff")
self.set_property('underline', Pango.Underline.SINGLE)