2009-08-18 12:45:57 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
# Terminator by Chris Jones <cmsj@tenshu.net>
|
|
|
|
# GPL v2 only
|
|
|
|
"""titlebar.py - classes necessary to provide a terminal title bar"""
|
|
|
|
|
|
|
|
import gtk
|
|
|
|
import gobject
|
|
|
|
|
2009-08-18 12:52:02 +00:00
|
|
|
# pylint: disable-msg=R0904
|
2009-08-18 12:45:57 +00:00
|
|
|
class Titlebar(gtk.EventBox):
|
|
|
|
"""Class implementing the Titlebar widget"""
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
"""Class initialiser"""
|
|
|
|
gtk.EventBox.__init__(self)
|
2009-08-19 00:05:44 +00:00
|
|
|
self.__gobject_init__()
|
2009-08-18 12:45:57 +00:00
|
|
|
|
|
|
|
self.show()
|
|
|
|
|
2009-08-19 00:05:44 +00:00
|
|
|
def connect_icon(self, func):
|
|
|
|
"""Connect the supplied function to clicking on the group icon"""
|
|
|
|
pass
|
|
|
|
|
2009-08-18 12:45:57 +00:00
|
|
|
gobject.type_register(Titlebar)
|