From 3ad158da2f399659976f5e9350ab2a1c03f663b3 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 6 Jan 2004 05:02:06 +0000 Subject: [PATCH] update svn: r2590 --- gramps2/src/ImageSelect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps2/src/ImageSelect.py b/gramps2/src/ImageSelect.py index 0cee13590..646a90b14 100644 --- a/gramps2/src/ImageSelect.py +++ b/gramps2/src/ImageSelect.py @@ -409,13 +409,13 @@ class Gallery(ImageSelect): justification=gtk.JUSTIFY_CENTER, y=_IMAGEY-10, text=description) + # make sure that the text string doesn't exceed the size of the box + bnds = text.get_bounds() - print bnds while bnds[0] <0: description = description[0:-4] + "..." text.set(text=description) bnds = text.get_bounds() - print bnds for i in [ item, text, box, grp ] : self.p_map[i] = (item,text,box,photo,oid)