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:
@@ -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):
|
||||
|
@@ -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):
|
||||
|
Reference in New Issue
Block a user