Handle gtk.TextView API change

svn: r1296
This commit is contained in:
Don Allingham 2003-02-10 04:13:15 +00:00
parent ccdf09c499
commit 539c2b20b8

View File

@ -181,7 +181,10 @@ class PedigreeView:
for n in [GrampsCfg.nameof(t[0]), for n in [GrampsCfg.nameof(t[0]),
"b. %s" % t[0].getBirth().getDate(), "b. %s" % t[0].getBirth().getDate(),
"d. %s" % t[0].getDeath().getDate()]: "d. %s" % t[0].getDeath().getDate()]:
try:
a.set_text(n,len(n)) a.set_text(n,len(n))
except TypeError:
a.set_text(n)
(w1,h1) = a.get_pixel_size() (w1,h1) = a.get_pixel_size()
h = max(h,h1) h = max(h,h1)
w = max(w,w1) w = max(w,w1)