Move find_mime_type_pixbuf from the Mime module to ThumbNails. It is more closely related to thumbnails than mime.

svn: r14109
This commit is contained in:
Brian Matherly
2010-01-24 04:52:22 +00:00
parent 4a529d0c28
commit 2e9a4c27d0
6 changed files with 28 additions and 31 deletions

View File

@@ -54,6 +54,7 @@ import const
import config
import Utils
import Mime
import ThumbNails
import GrampsDisplay
import ManagedWindow
from QuestionDialog import ErrorDialog, WarningDialog
@@ -200,7 +201,7 @@ class AddMediaObject(ManagedWindow.ManagedWindow):
if mtype and mtype.startswith("image"):
image = scale_image(filename, const.THUMBSCALE)
else:
image = Mime.find_mime_type_pixbuf(mtype)
image = ThumbNails.find_mime_type_pixbuf(mtype)
self.image.set_from_pixbuf(image)
def _cleanup_on_exit(self):

View File

@@ -165,7 +165,7 @@ class EditMedia(EditPrimary):
mtype)
self.pixmap.set_from_pixbuf(pb)
else:
pb = Mime.find_mime_type_pixbuf('text/plain')
pb = ThumbNails.find_mime_type_pixbuf('text/plain')
self.pixmap.set_from_pixbuf(pb)
def setup_filepath(self):