* 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:
@ -43,6 +43,7 @@ import gtk
|
||||
import GrampsDb
|
||||
import GrampsKeys
|
||||
import NameDisplay
|
||||
import GrampsMime
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -352,10 +353,6 @@ _rct_btm = '</menu></menu></menubar></ui>'
|
||||
|
||||
import RecentFiles
|
||||
import os
|
||||
try:
|
||||
from gnomevfs import get_mime_type
|
||||
except:
|
||||
from gnome.vfs import get_mime_type
|
||||
|
||||
class RecentDocsMenu:
|
||||
def __init__(self,uimanager, state, fileopen):
|
||||
@ -393,7 +390,7 @@ class RecentDocsMenu:
|
||||
for item in rfiles:
|
||||
try:
|
||||
filename = os.path.basename(item.get_path()).replace('_','__')
|
||||
filetype = get_mime_type(item.get_path())
|
||||
filetype = GrampsMime.get_type(item.get_path())
|
||||
action_id = "RecentMenu%d" % count
|
||||
f.write('<menuitem action="%s"/>' % action_id)
|
||||
actions.append((action_id,None,filename,None,None,
|
||||
|
Reference in New Issue
Block a user