* src/GrampsDisplay.py: move gnome help and url control into this

module
* various: switch from direct gnome calls to GrampsDisplay calls
* src/TreeTips.py: don't register type if pygtk > 2.8.0


svn: r5274
This commit is contained in:
Don Allingham
2005-10-06 00:44:52 +00:00
parent 3daa4c40bc
commit 484a656897
27 changed files with 73 additions and 82 deletions

View File

@@ -37,13 +37,7 @@ from gettext import gettext as _
#-------------------------------------------------------------------------
import gtk
import gtk.gdk
import gnome
try:
from gnomevfs import get_mime_type, mime_get_description
except:
from gnome.vfs import get_mime_type, mime_get_description
#-------------------------------------------------------------------------
#
# Gramps modules
@@ -251,11 +245,7 @@ def find_mime_type_pixbuf(mime_type):
def get_mime_description(mime_type):
try:
value = mime_get_description(mime_type)
if value:
return value
else:
return ''
return GrampsMime.get_description(mime_type)
except:
return ''