mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
deal with windows icons
This commit is contained in:
parent
f7039bdc0a
commit
10a34b0951
2 changed files with 7 additions and 2 deletions
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…
Add table
Reference in a new issue