* src/ImageSelect.py: make sure that description doesn't exceed the image

size
* src/MediaView.py: mark <local copy> for translation
* src/gramps.glade: eliminate fixed size for side panel, helps with translations.


svn: r2589
This commit is contained in:
Don Allingham
2004-01-06 04:34:19 +00:00
parent 576b6a3f7f
commit a0c601eb19
3 changed files with 10 additions and 2 deletions

View File

@ -409,6 +409,14 @@ class Gallery(ImageSelect):
justification=gtk.JUSTIFY_CENTER,
y=_IMAGEY-10, text=description)
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)
i.show()