diff --git a/src/ImageSelect.py b/src/ImageSelect.py index afccc6613..0cee13590 100644 --- a/src/ImageSelect.py +++ b/src/ImageSelect.py @@ -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() diff --git a/src/MediaView.py b/src/MediaView.py index 11031d406..96666f024 100644 --- a/src/MediaView.py +++ b/src/MediaView.py @@ -249,7 +249,7 @@ class MediaView: id = src.getId() type = Utils.get_mime_description(src.getMimeType()) if src.getLocal(): - path = "" + path = _("") else: path = src.getPath() stitle = string.upper(title) diff --git a/src/gramps.glade b/src/gramps.glade index 441ce3397..0f5a79181 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -871,7 +871,7 @@ - 80 + 10 True False 0