mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
deal with windows icons
This commit is contained in:
parent
f7039bdc0a
commit
10a34b0951
BIN
pixmaps/deluge.png
Normal file
BIN
pixmaps/deluge.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
@ -130,8 +130,13 @@ def get_pixmap(fname):
|
||||
|
||||
def get_logo(size):
|
||||
import gtk
|
||||
return gtk.gdk.pixbuf_new_from_file_at_size(get_pixmap("deluge.svg"), size,\
|
||||
size)
|
||||
import platform
|
||||
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):
|
||||
import threading
|
||||
|
Loading…
x
Reference in New Issue
Block a user