Compare commits

..

No commits in common. "master" and "v1.3" have entirely different histories.
master ... v1.3

3 changed files with 4 additions and 10 deletions

1
.gitignore vendored
View File

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

1
README
View File

@ -38,7 +38,6 @@ Available configuration parameters:
This value will be updated by the program when it closes. This value will be updated by the program when it closes.
'mailbox': String giving the name of the mailbox directory to search for 'mailbox': String giving the name of the mailbox directory to search for
the unread message count (if unspecified, uses "Inbox"). 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 '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 in response to a mouse click. The keys of this hash can be
'left', 'middle', or 'right'. The values of the hash can take 'left', 'middle', or 'right'. The values of the hash can take

View File

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