* 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
576b6a3f7f
commit
a0c601eb19
@ -409,6 +409,14 @@ class Gallery(ImageSelect):
|
|||||||
justification=gtk.JUSTIFY_CENTER,
|
justification=gtk.JUSTIFY_CENTER,
|
||||||
y=_IMAGEY-10, text=description)
|
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 ] :
|
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)
|
||||||
i.show()
|
i.show()
|
||||||
|
@ -249,7 +249,7 @@ class MediaView:
|
|||||||
id = src.getId()
|
id = src.getId()
|
||||||
type = Utils.get_mime_description(src.getMimeType())
|
type = Utils.get_mime_description(src.getMimeType())
|
||||||
if src.getLocal():
|
if src.getLocal():
|
||||||
path = "<local copy>"
|
path = _("<local copy>")
|
||||||
else:
|
else:
|
||||||
path = src.getPath()
|
path = src.getPath()
|
||||||
stitle = string.upper(title)
|
stitle = string.upper(title)
|
||||||
|
@ -871,7 +871,7 @@
|
|||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkVBox" id="sidebar">
|
<widget class="GtkVBox" id="sidebar">
|
||||||
<property name="width_request">80</property>
|
<property name="border_width">10</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="homogeneous">False</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="spacing">0</property>
|
<property name="spacing">0</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user