2006-06-16 Don Allingham <don@gramps-project.org>

* src/DataViews/_MediaView.py: clear image if none is selected



svn: r6905
This commit is contained in:
Don Allingham 2006-06-17 02:36:57 +00:00
parent 7585b5e47d
commit fe4bdbc9c1
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,6 @@
2006-06-16 Don Allingham <don@gramps-project.org>
* src/DataViews/_MediaView.py: clear image if none is selected
2006-06-16 Alex Roitman <shura@gramps-project.org>
* src/PluginUtils/_PluginMgr.py (register_report): Add
require_active argument to _register_cl_report call.

View File

@ -24,7 +24,6 @@
# Python modules
#
#-------------------------------------------------------------------------
import gc
from gettext import gettext as _
#-------------------------------------------------------------------------
@ -132,11 +131,11 @@ class MediaView(PageView.ListView):
def row_change(self,obj):
handle = self.first_selected()
if not handle:
return
obj = self.dbstate.db.get_object_from_handle(handle)
pix = ImgManip.get_thumbnail_image(obj.get_path())
self.image.set_from_pixbuf(pix)
gc.collect()
self.image.clear()
else:
obj = self.dbstate.db.get_object_from_handle(handle)
pix = ImgManip.get_thumbnail_image(obj.get_path())
self.image.set_from_pixbuf(pix)
def ui_definition(self):
return '''<ui>