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:
parent
59573b0529
commit
ca5f2c8bbd
@ -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>
|
2006-06-16 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/PluginUtils/_PluginMgr.py (register_report): Add
|
* src/PluginUtils/_PluginMgr.py (register_report): Add
|
||||||
require_active argument to _register_cl_report call.
|
require_active argument to _register_cl_report call.
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
# Python modules
|
# Python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gc
|
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -132,11 +131,11 @@ class MediaView(PageView.ListView):
|
|||||||
def row_change(self,obj):
|
def row_change(self,obj):
|
||||||
handle = self.first_selected()
|
handle = self.first_selected()
|
||||||
if not handle:
|
if not handle:
|
||||||
return
|
self.image.clear()
|
||||||
obj = self.dbstate.db.get_object_from_handle(handle)
|
else:
|
||||||
pix = ImgManip.get_thumbnail_image(obj.get_path())
|
obj = self.dbstate.db.get_object_from_handle(handle)
|
||||||
self.image.set_from_pixbuf(pix)
|
pix = ImgManip.get_thumbnail_image(obj.get_path())
|
||||||
gc.collect()
|
self.image.set_from_pixbuf(pix)
|
||||||
|
|
||||||
def ui_definition(self):
|
def ui_definition(self):
|
||||||
return '''<ui>
|
return '''<ui>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user