In .:
2006-08-04 Alex Roitman <shura@gramps-project.org> * src/DataViews/_MediaView.py (row_change): Work around older pygtk. * src/Filters/Rules/Family/Makefile.am (pkgdata_PYTHON): Ship new files. * src/Filters/Rules/Makefile.am (pkgdata_PYTHON): Ship new file. In po: 2006-08-04 Alex Roitman <shura@gramps-project.org> * POTFILES.in: Unlist plugins that are not shipped. svn: r7120
This commit is contained in:
@@ -130,7 +130,12 @@ class MediaView(PageView.ListView):
|
||||
def row_change(self,obj):
|
||||
handle = self.first_selected()
|
||||
if not handle:
|
||||
self.image.clear()
|
||||
try:
|
||||
self.image.clear()
|
||||
except AttributeError:
|
||||
# Working around the older pygtk
|
||||
# that lacks clear() method for gtk.Image()
|
||||
self.image.set_from_file(None)
|
||||
else:
|
||||
obj = self.dbstate.db.get_object_from_handle(handle)
|
||||
pix = ImgManip.get_thumbnail_image(obj.get_path())
|
||||
|
||||
Reference in New Issue
Block a user