From 88756b517b26d41e465d03c0b2dba684ec060c22 Mon Sep 17 00:00:00 2001 From: lastpoet Date: Mon, 4 Oct 2010 21:35:34 +0100 Subject: [PATCH] Add nice icon --- pyfpdb/HUD_main.pyw | 8 ++++++++ 1 file changed, 8 insertions(+) mode change 100755 => 100644 pyfpdb/HUD_main.pyw diff --git a/pyfpdb/HUD_main.pyw b/pyfpdb/HUD_main.pyw old mode 100755 new mode 100644 index a32665f1..4852e930 --- a/pyfpdb/HUD_main.pyw +++ b/pyfpdb/HUD_main.pyw @@ -111,8 +111,16 @@ class HUD_main(object): self.vb.add(self.label) self.main_window.add(self.vb) self.main_window.set_title(_("HUD Main Window")) + cards = os.path.join(os.getcwd(), '..','gfx','fpdb-cards.png') + if os.path.exists(cards): + self.main_window.set_icon_from_file(cards) + elif os.path.exists('/usr/share/pixmaps/fpdb-cards.png'): + self.main_window.set_icon_from_file('/usr/share/pixmaps/fpdb-cards.png') + else: + self.main_window.set_icon_stock(gtk.STOCK_HOME) self.main_window.show_all() gobject.timeout_add(100, self.check_tables) + except: log.error("*** Exception in HUD_main.init() *** ") for e in traceback.format_tb(sys.exc_info()[2]):