From 695688b35737cd714d06f81532f97a9ac2b0b2db 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 --- src/PedView.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PedView.py b/src/PedView.py index 835492eda..ede1124aa 100644 --- a/src/PedView.py +++ b/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)