From 539c2b20b82e4192bf59a42b159f901685017db6 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 10 Feb 2003 04:13:15 +0000 Subject: [PATCH] Handle gtk.TextView API change svn: r1296 --- gramps2/src/PedView.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps2/src/PedView.py b/gramps2/src/PedView.py index 835492eda..ede1124aa 100644 --- a/gramps2/src/PedView.py +++ b/gramps2/src/PedView.py @@ -181,7 +181,10 @@ class PedigreeView: for n in [GrampsCfg.nameof(t[0]), "b. %s" % t[0].getBirth().getDate(), "d. %s" % t[0].getDeath().getDate()]: - a.set_text(n,len(n)) + try: + a.set_text(n,len(n)) + except TypeError: + a.set_text(n) (w1,h1) = a.get_pixel_size() h = max(h,h1) w = max(w,w1)