More icon bits

This commit is contained in:
Chris Jones 2008-02-08 11:05:19 +00:00
parent eb4e8179e3
commit 45b0e41c6d
1 changed files with 7 additions and 2 deletions

View File

@ -516,8 +516,13 @@ class Terminator:
self.window = gtk.Window ()
self.window.set_title ("Terminator")
self.icon = self.window.render_icon (gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON)
self.window.set_icon (self.icon)
# FIXME: This really shouldn't be a hardcoded path
try:
self.window.set_icon_from_file ("/usr/share/icons/hicolor/48x48/apps/terminator.png")
except:
self.icon = self.window.render_icon (gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON)
self.window.set_icon (self.icon)
self.window.connect ("key-press-event", self.on_key_press)
self.window.connect ("delete_event", self.on_delete_event)