correction for glib.gerror commit

This commit is contained in:
Calum Lind 2012-02-19 13:32:45 +00:00
parent ed883125fd
commit 7b1e8862b4
1 changed files with 8 additions and 8 deletions

View File

@ -50,15 +50,15 @@ import deluge.common
def get_logo(size):
"""Returns a deluge logo pixbuf based on the size parameter."""
if deluge.common.windows_check() or deluge.common.osx_check():
return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.png"), \
size, size)
else:
try:
try:
if deluge.common.windows_check() or deluge.common.osx_check():
return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.png"), \
size, size)
else:
return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.svg"), \
size, size)
except Exception, e:
log.warning(e)
size, size)
except Exception, e:
log.warning(e)
def build_menu_radio_list(value_list, callback, pref_value=None,
suffix=None, show_notset=False, notset_label=None, notset_lessthan=0,