Author: damoxc
Revision: 5593
Log:
convert the other icons that i could see to the icon theme
Diff:
Modified: trunk/deluge/ui/gtkui/aboutdialog.py
===================================================================
--- trunk/deluge/ui/gtkui/aboutdialog.py 2009-07-30 23:41:27 UTC (rev
5592)
+++ trunk/deluge/ui/gtkui/aboutdialog.py 2009-07-30 23:46:03 UTC (rev
5593)
@@ -73,7 +73,16 @@
if not, see <http://www.gnu.org/licenses>."))
self.about.set_website("http://deluge-torrent.org")
self.about.set_website_label("http://deluge-torrent.org")
- self.about.set_icon(common.get_logo(32))
+
+ if deluge.common.windows_check():
+ self.about.set_icon(common.get_logo(32))
+ else:
+ try:
+ icon_theme = gtk.icon_theme_get_default()
+ self.about.set_icon(icon_theme.load_icon("deluge", 32, 0))
+ except:
+ self.about.set_icon(common.get_logo(32))
+
self.about.set_logo(gtk.gdk.pixbuf_new_from_file(
deluge.common.get_pixmap("deluge-about.png")))
Modified: trunk/deluge/ui/gtkui/menubar.py
===================================================================
--- trunk/deluge/ui/gtkui/menubar.py 2009-07-30 23:41:27 UTC (rev 5592)
+++ trunk/deluge/ui/gtkui/menubar.py 2009-07-30 23:46:03 UTC (rev 5593)
@@ -324,7 +324,11 @@
gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK))
chooser.set_local_only(True)
if not deluge.common.windows_check():
- chooser.set_icon(common.get_logo(18))
+ try:
+ icon_theme = gtk.icon_theme_get_default()
+ chooser.set_icon(icon_theme.load_icon("deluge", 32, 0))
+ except:
+ chooser.set_icon(common.get_logo(32))
chooser.set_property("skip-taskbar-hint", True)
chooser.set_current_folder(config["choose_directory_dialog_path"])
if chooser.run() == gtk.RESPONSE_OK:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---