svn: r2590
This commit is contained in:
Don Allingham 2004-01-06 05:02:06 +00:00
parent a0c601eb19
commit 1a1eb05059

View File

@ -409,13 +409,13 @@ class Gallery(ImageSelect):
justification=gtk.JUSTIFY_CENTER, justification=gtk.JUSTIFY_CENTER,
y=_IMAGEY-10, text=description) y=_IMAGEY-10, text=description)
# make sure that the text string doesn't exceed the size of the box
bnds = text.get_bounds() bnds = text.get_bounds()
print bnds
while bnds[0] <0: while bnds[0] <0:
description = description[0:-4] + "..." description = description[0:-4] + "..."
text.set(text=description) text.set(text=description)
bnds = text.get_bounds() bnds = text.get_bounds()
print bnds
for i in [ item, text, box, grp ] : for i in [ item, text, box, grp ] :
self.p_map[i] = (item,text,box,photo,oid) self.p_map[i] = (item,text,box,photo,oid)