2007-09-28 Tobias Gehrig <tobias@gehrignet.de>
* src/DataViews/_PedigreeView.py: use subsection thumbnails * src/DataViews/_RelationView.py: use subsection thumbnails * src/Editors/_EditPerson.py: use subsection thumbnails * src/Editors/_EditMediaRef.py: added subsection thumbnail preview and signal handlers to update subsection thumbnail on spinbutton changes * src/DisplayTabs/_GalleryTab.py: use subsection thumbnails * src/ThumbNails.py: added rectangle parameter to thumbnail functions to specify the subsection * src/GrampsWidgets.py: added class MonitoredSpinButton * src/glade/gramps.glade: added preview pixmap of subsection thumbnail to change_description svn: r9027
This commit is contained in:
@@ -853,7 +853,8 @@ 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())
|
||||
image = ThumbNails.get_thumbnail_path(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:
|
||||
|
||||
@@ -559,7 +559,8 @@ class RelationshipView(PageView.PersonNavView):
|
||||
if image_list:
|
||||
mobj = self.dbstate.db.get_object_from_handle(image_list[0].ref)
|
||||
if mobj.get_mime_type()[0:5] == "image":
|
||||
pixbuf = ThumbNails.get_thumbnail_image(mobj.get_path())
|
||||
pixbuf = ThumbNails.get_thumbnail_image(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