Author: damoxc

Revision: 5289

Log:
        attempt to set the icon via the icon theme before falling back to the 
logo (as in the statusbar)

Diff:
Modified: trunk/deluge/ui/gtkui/mainwindow.py
===================================================================
--- trunk/deluge/ui/gtkui/mainwindow.py 2009-05-19 22:47:51 UTC (rev 5288)
+++ trunk/deluge/ui/gtkui/mainwindow.py 2009-05-19 23:49:31 UTC (rev 5289)
@@ -62,7 +62,15 @@
                                                     "glade/main_window.glade"))
 
         self.window = self.main_glade.get_widget("main_window")
-        self.window.set_icon(common.get_logo(32))
+
+        if deluge.common.windows_check():
+            self.window.set_icon(common.get_logo(32))
+        else:
+            try:
+                icon_theme = gtk.icon_theme_get_default()
+                self.window.set_icon(icon_theme.load_icon("deluge", 32, 0))
+            except:
+                self.window.set_icon(common.get_logo(32))
         self.vpaned = self.main_glade.get_widget("vpaned")
 
         # Load the window state



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

Reply via email to