Support setting the window role
This commit is contained in:
parent
fe7e03d00f
commit
1625326838
|
@ -56,6 +56,9 @@ class Window(Container, gtk.Window):
|
||||||
if forcedtitle is not None:
|
if forcedtitle is not None:
|
||||||
self.title.force_title(forcedtitle)
|
self.title.force_title(forcedtitle)
|
||||||
|
|
||||||
|
if role is not None:
|
||||||
|
self.set_role(role)
|
||||||
|
|
||||||
def register_callbacks(self):
|
def register_callbacks(self):
|
||||||
"""Connect the GTK+ signals we care about"""
|
"""Connect the GTK+ signals we care about"""
|
||||||
self.connect('key-press-event', self.on_key_press)
|
self.connect('key-press-event', self.on_key_press)
|
||||||
|
|
Loading…
Reference in New Issue