Update
svn: r4089
This commit is contained in:
parent
f0317a95be
commit
91fab71a7f
@ -186,14 +186,13 @@ class MediaView:
|
|||||||
type_name = Utils.get_mime_description(mtype)
|
type_name = Utils.get_mime_description(mtype)
|
||||||
if mtype[0:5] == "image":
|
if mtype[0:5] == "image":
|
||||||
image = ImgManip.get_thumbnail_image(path)
|
image = ImgManip.get_thumbnail_image(path)
|
||||||
self.preview.set_from_pixbuf(image)
|
|
||||||
else:
|
else:
|
||||||
icon_image = Utils.find_mime_type_pixbuf(mtype)
|
image = Utils.find_mime_type_pixbuf(mtype)
|
||||||
self.preview.set_from_pixbuf(icon_image)
|
|
||||||
else:
|
else:
|
||||||
icon_image = Utils.find_mime_type_pixbuf('text/plain')
|
image = Utils.find_mime_type_pixbuf('text/plain')
|
||||||
self.preview.set_from_pixbuf(icon_image)
|
|
||||||
type_name = _('Note')
|
type_name = _('Note')
|
||||||
|
self.preview.set_from_pixbuf(image)
|
||||||
|
del image
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
||||||
self.mid.set_text(mobj.get_gramps_id())
|
self.mid.set_text(mobj.get_gramps_id())
|
||||||
|
Loading…
Reference in New Issue
Block a user