* 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:
@ -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()
|
||||
|
Reference in New Issue
Block a user