* 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:
24
src/Utils.py
24
src/Utils.py
@ -505,30 +505,6 @@ def view_photo(photo):
|
||||
if os.fork() == 0:
|
||||
os.execvp(args[0],args)
|
||||
|
||||
_icon_theme = gtk.icon_theme_get_default()
|
||||
|
||||
def find_mime_type_pixbuf(mime_type):
|
||||
try:
|
||||
icontmp = mime_type.replace('/','-')
|
||||
newicon = "gnome-mime-%s" % icontmp
|
||||
try:
|
||||
return _icon_theme.load_icon(newicon,48,0)
|
||||
except:
|
||||
icontmp = mime_type.split('/')[0]
|
||||
try:
|
||||
newicon = "gnome-mime-%s" % icontmp
|
||||
return _icon_theme.load_icon(newicon,48,0)
|
||||
except:
|
||||
return gtk.gdk.pixbuf_new_from_file(const.icon)
|
||||
except:
|
||||
return gtk.gdk.pixbuf_new_from_file(const.icon)
|
||||
|
||||
def get_mime_description(mime_type):
|
||||
try:
|
||||
return GrampsMime.get_description(mime_type)
|
||||
except:
|
||||
return ''
|
||||
|
||||
def find_file( filename):
|
||||
# try the filename we got
|
||||
try:
|
||||
|
Reference in New Issue
Block a user