URL drag/drop

svn: r493
This commit is contained in:
Don Allingham
2001-10-19 02:13:23 +00:00
parent 935103f9d9
commit 80132c03f9
2 changed files with 19 additions and 6 deletions

View File

@@ -20,6 +20,7 @@
import gtk
import gnome.mime
import gnome.util
from gnome.ui import *
import string
import os
@@ -389,8 +390,11 @@ def thumb_path(dir,mobj):
type = mobj.getMimeType()
if type[0:5] == "image":
thumb = "%s/.thumb/%s.jpg" % (dir,mobj.getId())
RelImage.check_thumb(mobj.getPath(),thumb,const.thumbScale)
return thumb
try:
RelImage.check_thumb(mobj.getPath(),thumb,const.thumbScale)
return thumb
except:
return find_icon(type)
else:
return find_icon(type)