Support setting the window role

This commit is contained in:
Chris Jones 2010-01-05 12:55:05 +00:00
parent fe7e03d00f
commit 1625326838
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ class Window(Container, gtk.Window):
if forcedtitle is not None:
self.title.force_title(forcedtitle)
if role is not None:
self.set_role(role)
def register_callbacks(self):
"""Connect the GTK+ signals we care about"""
self.connect('key-press-event', self.on_key_press)