* src/plugins/WebPage.py: media reference fixes
* src/plugins/ReadGedcom.py: media reference fixes * src/plugins/IndivSummary.py: media reference fixes * src/plugins/IndivComplete.py: media reference fixes * src/plugins/DetAncestralReport.py: media reference fixes * src/plugins/DetDescendantReport.py: media reference fixes * src/plugins/Check.py: media reference fixes * src/gramps_main.py: media reference fixes * src/Utils.py: gnome.vfs vs. grampslib * src/RelLib.py: single db file, media reference fixes * src/MediaView.py: media reference fixes svn: r2911
This commit is contained in:
@ -35,6 +35,7 @@ import locale
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gtk
|
||||
import gnome.vfs
|
||||
import grampslib
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@ -427,13 +428,13 @@ def find_icon(mtype):
|
||||
return const.icon
|
||||
|
||||
def get_mime_type(file):
|
||||
type = grampslib.gnome_vfs_mime_type_from_name(file)
|
||||
type = gnome.vfs.get_mime_type(file)
|
||||
if type:
|
||||
return type
|
||||
return "unknown"
|
||||
|
||||
def get_mime_description(type):
|
||||
value = grampslib.gnome_vfs_mime_get_description(type)
|
||||
value = gnome.vfs.mime_get_description(type)
|
||||
if value:
|
||||
return value
|
||||
return ""
|
||||
|
Reference in New Issue
Block a user