deal with windows icons
This commit is contained in:
parent
f7039bdc0a
commit
10a34b0951
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
|
@ -130,8 +130,13 @@ def get_pixmap(fname):
|
||||||
|
|
||||||
def get_logo(size):
|
def get_logo(size):
|
||||||
import gtk
|
import gtk
|
||||||
return gtk.gdk.pixbuf_new_from_file_at_size(get_pixmap("deluge.svg"), size,\
|
import platform
|
||||||
size)
|
if platform.system() == "Windows":
|
||||||
|
return gtk.gdk.pixbuf_new_from_file_at_size(get_pixmap("deluge.png"), \
|
||||||
|
size, size)
|
||||||
|
else:
|
||||||
|
return gtk.gdk.pixbuf_new_from_file_at_size(get_pixmap("deluge.svg"), \
|
||||||
|
size, size)
|
||||||
|
|
||||||
def open_url_in_browser(link):
|
def open_url_in_browser(link):
|
||||||
import threading
|
import threading
|
||||||
|
|
Loading…
Reference in New Issue