* 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:
parent
c681413e0d
commit
8028428fc0
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user