Commits

Anonymous committed b326c0c

set window icon

  • Participants
  • Parent commits 3ad2a64

Comments (0)

Files changed (1)

File yomogi/terminal.py

     highlight_diff = False
     sync_scroll = False
 
+    window_icon_name = 'utilities-terminal'
+
     def __init__(self, opts):
         gtk.Window.__init__(self)
 
         self.set_default_size(400, 300)
         self.set_title(self.title)
 
+        icon_theme = gtk.icon_theme_get_default()
+        icons = [icon_theme.load_icon(self.window_icon_name, size, 0)
+                 for size in icon_theme.get_icon_sizes(self.window_icon_name)
+                 if size > 0]
+        if icons:
+            self.set_icon_list(*icons)
+
         self.connect('destroy', self.close_window)
 
         self.is_fullscreen = False