add "sticky" conf item; doesn't work in Windows :(

This commit is contained in:
Josh Holtrop 2011-07-07 10:43:34 -04:00
parent d030b30af2
commit 9e325a9437

View File

@ -9,10 +9,15 @@ class Window(object):
self.conf['width'] = 32
if not 'height' in self.conf:
self.conf['height'] = 32
sticky = True
if 'sticky' in self.conf:
sticky = self.conf['sticky']
self.window = gtk.Window()
self.window.set_title(title)
self.window.set_decorated(False)
if sticky:
self.window.stick()
self.window.connect('destroy', self.destroy_event)
self.window.connect('button-release-event', self.button_release)
self.window.set_events(gtk.gdk.BUTTON_RELEASE_MASK)