2008-02-15 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/RelationView.py * src/DataViews/PedigreeView.py * src/ReportBase/_ReportUtils.py * src/Editors/_EditPerson.py * src/Editors/_EditMediaRef.py * src/DisplayTabs/_GalleryTab.py: also correct wrong popup menu * src/plugins/Summary.py * src/plugins/WriteCD.py * src/plugins/IndivComplete.py * src/plugins/NarrativeWeb.py * src/plugins/WritePkg.py * src/plugins/GVFamilyLines.py * src/plugins/DefaultGramplets.py * src/plugins/SimpleBookTitle.py * src/plugins/Check.py * src/plugins/GVRelGraph.py * src/plugins/FamilyLines.py * src/Selectors/_SelectObject.py * src/GrampsDbUtils/_WriteGedcom.py #1787, #1208: use relative path correctly svn: r10048
This commit is contained in:
@@ -857,8 +857,11 @@ class PedigreeView(PageView.PersonNavView):
|
||||
if obj:
|
||||
mtype = obj.get_mime_type()
|
||||
if mtype and mtype[0:5] == "image":
|
||||
image = ThumbNails.get_thumbnail_path(obj.get_path(),
|
||||
rectangle=ph.get_rectangle())
|
||||
image = ThumbNails.get_thumbnail_path(
|
||||
Utils.media_path_full(
|
||||
self.dbstate.db,
|
||||
obj.get_path()),
|
||||
rectangle=ph.get_rectangle())
|
||||
if cairo_available:
|
||||
pw = PersonBoxWidget_cairo( self.format_helper, lst[i][0], lst[i][3], positions[i][0][3], image);
|
||||
else:
|
||||
|
||||
@@ -46,6 +46,7 @@ import gtk
|
||||
import gen.lib
|
||||
import PageView
|
||||
from BasicUtils import name_displayer
|
||||
from Utils import media_path_full
|
||||
import DateHandler
|
||||
import ThumbNails
|
||||
import Config
|
||||
@@ -577,8 +578,10 @@ class RelationshipView(PageView.PersonNavView):
|
||||
if image_list:
|
||||
mobj = self.dbstate.db.get_object_from_handle(image_list[0].ref)
|
||||
if mobj and mobj.get_mime_type()[0:5] == "image":
|
||||
pixbuf = ThumbNails.get_thumbnail_image(mobj.get_path(),
|
||||
rectangle=image_list[0].get_rectangle())
|
||||
pixbuf = ThumbNails.get_thumbnail_image(
|
||||
media_path_full(self.dbstate.db,
|
||||
mobj.get_path()),
|
||||
rectangle=image_list[0].get_rectangle())
|
||||
image = gtk.Image()
|
||||
image.set_from_pixbuf(pixbuf)
|
||||
image.show()
|
||||
|
||||
Reference in New Issue
Block a user