* src/GnomeMime.py: GNOME based mime handling
* src/PythonMime.py: Python based mime handling * src/AddMedia.py: gnome code isolation * src/DisplayState.py: gnome code isolation * src/EditPerson.py: gnome code isolation * src/EditRepository.py: gnome code isolation * src/GnomeMime.py: gnome code isolation * src/GrampsDisplay.py: gnome code isolation * src/GrampsMime.py: gnome code isolation * src/ImageSelect.py: gnome code isolation * src/ImgManip.py: gnome code isolation * src/PluginMgr.py: toolbar/menu support * src/Plugins.py: toolbar/menu support * src/RepositoryRefEdit.py: gnome code isolation * src/SelectObject.py: gnome code isolation * src/Utils.py: gnome code isolation * src/ViewManager.py: toolbar/menu support, gnome code isolation * src/GrampsDb/_GrampsBSDDB.py: unified messaging * src/GrampsDb/_ReadGedcom.py: unified messaging * src/plugins/WriteFtree.py: gnome code isolation svn: r5636
This commit is contained in:
@@ -58,6 +58,7 @@ import const
|
||||
import Utils
|
||||
import ListModel
|
||||
import ImgManip
|
||||
import GrampsMime
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -100,7 +101,7 @@ class SelectObject:
|
||||
for key in self.db.get_media_object_handles():
|
||||
obj = self.db.get_object_from_handle(key)
|
||||
title = obj.get_description()
|
||||
the_type = Utils.get_mime_description(obj.get_mime_type())
|
||||
the_type = GramspMime.get_description(obj.get_mime_type())
|
||||
path = obj.get_path()
|
||||
self.object_model.add([title,obj.get_gramps_id(),the_type,path],key)
|
||||
|
||||
@@ -119,7 +120,7 @@ class SelectObject:
|
||||
if the_type and the_type[0:5] == "image":
|
||||
image = ImgManip.get_thumbnail_image(path,the_type)
|
||||
else:
|
||||
image = Utils.find_mime_type_pixbuf(the_type)
|
||||
image = GrampsMime.find_mime_type_pixbuf(the_type)
|
||||
self.preview.set_from_pixbuf(image)
|
||||
|
||||
self.object_handle.set_text(obj.get_gramps_id())
|
||||
|
Reference in New Issue
Block a user