mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Fix showing the 'Other' speed dialogs in Windows
This commit is contained in:
parent
464e11abe6
commit
48e3df5ff3
2 changed files with 6 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
||||||
=== Deluge 1.2.0_rc4 (In Development) ===
|
=== Deluge 1.2.0_rc4 (In Development) ===
|
||||||
|
==== GtkUI ====
|
||||||
|
* Fix showing the 'Other' speed dialogs in Windows
|
||||||
|
|
||||||
==== Web ====
|
==== Web ====
|
||||||
* Fix installing the deluge-web manpage
|
* Fix installing the deluge-web manpage
|
||||||
* Escape hyphens in the manpage
|
* Escape hyphens in the manpage
|
||||||
|
|
|
@ -159,6 +159,9 @@ def show_other_dialog(header, type_str, image_stockid=None, image_filename=None,
|
||||||
if image_stockid:
|
if image_stockid:
|
||||||
glade.get_widget("image").set_from_stock(image_stockid, gtk.ICON_SIZE_LARGE_TOOLBAR)
|
glade.get_widget("image").set_from_stock(image_stockid, gtk.ICON_SIZE_LARGE_TOOLBAR)
|
||||||
if image_filename:
|
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(
|
pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(
|
||||||
deluge.common.get_pixmap(image_filename), 32, 32)
|
deluge.common.get_pixmap(image_filename), 32, 32)
|
||||||
glade.get_widget("image").set_from_pixbuf(pixbuf)
|
glade.get_widget("image").set_from_pixbuf(pixbuf)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue