deal with windows icons

This commit is contained in:
Marcos Pinto 2007-09-10 09:59:12 +00:00
parent f7039bdc0a
commit 10a34b0951
2 changed files with 7 additions and 2 deletions

BIN
pixmaps/deluge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -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