From 59b93f4d2e2ab2f5b46b87431c96490013665e85 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 3 Nov 2009 03:19:30 +0000 Subject: [PATCH] Fix showing the 'Other' speed dialogs in Windows --- deluge/ui/gtkui/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/gtkui/common.py b/deluge/ui/gtkui/common.py index ebeb8b4c7..72bbbb139 100644 --- a/deluge/ui/gtkui/common.py +++ b/deluge/ui/gtkui/common.py @@ -159,6 +159,9 @@ def show_other_dialog(header, type_str, image_stockid=None, image_filename=None, if image_stockid: glade.get_widget("image").set_from_stock(image_stockid, gtk.ICON_SIZE_LARGE_TOOLBAR) if image_filename: + # Hack for Windows since it doesn't support svg + if os.path.splitext(image_filename)[1] == ".svg" and deluge.common.windows_check(): + image_filename = os.path.splitext(image_filename)[0] + "16.png" pixbuf = gtk.gdk.pixbuf_new_from_file_at_size( deluge.common.get_pixmap(image_filename), 32, 32) glade.get_widget("image").set_from_pixbuf(pixbuf)