diff --git a/gramps2/src/ImageSelect.py b/gramps2/src/ImageSelect.py index afccc6613..0cee13590 100644 --- a/gramps2/src/ImageSelect.py +++ b/gramps2/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/gramps2/src/MediaView.py b/gramps2/src/MediaView.py index 11031d406..96666f024 100644 --- a/gramps2/src/MediaView.py +++ b/gramps2/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/gramps2/src/gramps.glade b/gramps2/src/gramps.glade index 441ce3397..0f5a79181 100644 --- a/gramps2/src/gramps.glade +++ b/gramps2/src/gramps.glade @@ -871,7 +871,7 @@ - 80 + 10 True False 0