* src/glade/gramps.glade (select_person): Name the box.
* src/DataViews/_MediaView.py (row_change): Collect garbage on the row change. * src/Selectors/_BaseSelector.py: Use DisplaModel models; (_local_init): Add selector-specific hook. (_local_init): Set up preview; (_row_change): Show preview; collect garbage. svn: r6690
This commit is contained in:
@@ -19,6 +19,14 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gc
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# GTK/Gnome modules
|
||||
@@ -42,13 +50,6 @@ from Editors import EditMedia
|
||||
import Errors
|
||||
from QuestionDialog import QuestionDialog, ErrorDialog
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
|
||||
column_names = [
|
||||
_('Title'),
|
||||
_('ID'),
|
||||
@@ -135,6 +136,7 @@ class MediaView(PageView.ListView):
|
||||
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()
|
||||
|
||||
def ui_definition(self):
|
||||
return '''<ui>
|
||||
|
Reference in New Issue
Block a user