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,6 +516,11 @@ class Terminator:
self.window = gtk.Window () self.window = gtk.Window ()
self.window.set_title ("Terminator") self.window.set_title ("Terminator")
# 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.icon = self.window.render_icon (gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON)
self.window.set_icon (self.icon) self.window.set_icon (self.icon)