Fix get_deluge_icon

This commit is contained in:
Andrew Resch 2009-08-03 14:40:24 +00:00
parent 4cfa6485d7
commit a14f4f6869

View File

@ -215,13 +215,12 @@ def get_deluge_icon():
that is distributed with the package. that is distributed with the package.
""" """
import deluge.common
if deluge.common.windows_check(): if deluge.common.windows_check():
return deluge.common.get_logo(32) return get_logo(32)
else: else:
try: try:
icon_theme = gtk.icon_theme_get_default() icon_theme = gtk.icon_theme_get_default()
return icon_theme.load_icon("deluge", 32, 0) return icon_theme.load_icon("deluge", 32, 0)
except: except:
return deluge.common.get_logo(32) return get_logo(32)