Compare commits

..

4 Commits
v1.3 ... master

Author SHA1 Message Date
fc7c80d6ec update README 2011-12-21 12:34:50 -05:00
Josh Holtrop
fae48b4a8d rework handling of 'sticky' conf item to match others 2011-07-19 14:32:42 -04:00
Josh Holtrop
cf66a347b1 ignore distribution directories 2011-07-19 14:31:41 -04:00
Josh Holtrop
183a5c8076 add 'always_on_top' config item and capability 2011-07-19 14:31:12 -04:00
3 changed files with 10 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
build
dist
pygtk-imap-chk-v?.?

1
README
View File

@ -38,6 +38,7 @@ Available configuration parameters:
This value will be updated by the program when it closes.
'mailbox': String giving the name of the mailbox directory to search for
the unread message count (if unspecified, uses "Inbox").
You may specify subfolders such as "Inbox/Folder".
'mouse': A hash which configures the actions for the program to take
in response to a mouse click. The keys of this hash can be
'left', 'middle', or 'right'. The values of the hash can take

View File

@ -39,18 +39,22 @@ class Window(object):
self.conf['mouse']['middle'] = 'reconnect'
if not 'right' in self.conf['mouse']:
self.conf['mouse']['right'] = 'exit'
if not 'always_on_top' in self.conf:
self.conf['always_on_top'] = True
if not 'sticky' in self.conf:
self.conf['sticky'] = True
self.font_sz = int(1024 * self.conf['font_size'])
self.fgcolor = ''.join(map(lambda x: '%02x' % int(0xFF * x),
self.conf['fgcolor']))
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:
if self.conf['sticky']:
self.window.stick()
if self.conf['always_on_top']:
self.window.set_keep_above(True)
self.window.connect('destroy', self.destroy_event)
self.label = gtk.Label('-')