* src/Utils.py (find_mime_type_pixbuf): Dont segfault with note only object

* src/SelectObject.py (on_select_row): Dont segfault with note only object


svn: r4937
This commit is contained in:
Martin Hawlisch
2005-07-15 05:44:06 +00:00
parent c31363c02b
commit add5f946d9
3 changed files with 7 additions and 2 deletions

View File

@@ -232,8 +232,8 @@ def view_photo(photo):
_icon_theme = gtk.icon_theme_get_default()
def find_mime_type_pixbuf(mime_type):
icontmp = mime_type.replace('/','-')
try:
icontmp = mime_type.replace('/','-')
newicon = "gnome-mime-%s" % icontmp
try:
return _icon_theme.load_icon(newicon,48,0)