* 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()

View File

@ -249,7 +249,7 @@ class MediaView:
id = src.getId()
type = Utils.get_mime_description(src.getMimeType())
if src.getLocal():
path = "<local copy>"
path = _("<local copy>")
else:
path = src.getPath()
stitle = string.upper(title)

View File

@ -871,7 +871,7 @@
<child>
<widget class="GtkVBox" id="sidebar">
<property name="width_request">80</property>
<property name="border_width">10</property>
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>