From d030b30af26fca118185120a2aad62d7200712fa Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 7 Jul 2011 10:33:56 -0400 Subject: [PATCH] give window a title --- Window.py | 3 ++- pygtk-imap-chk.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Window.py b/Window.py index 570f313..31bfa2b 100755 --- a/Window.py +++ b/Window.py @@ -3,7 +3,7 @@ import gtk import imaplib class Window(object): - def __init__(self, conf): + def __init__(self, title, conf): self.conf = conf if not 'width' in self.conf: self.conf['width'] = 32 @@ -11,6 +11,7 @@ class Window(object): self.conf['height'] = 32 self.window = gtk.Window() + self.window.set_title(title) self.window.set_decorated(False) self.window.connect('destroy', self.destroy_event) self.window.connect('button-release-event', self.button_release) diff --git a/pygtk-imap-chk.py b/pygtk-imap-chk.py index b5c6012..5c94cf0 100755 --- a/pygtk-imap-chk.py +++ b/pygtk-imap-chk.py @@ -5,6 +5,8 @@ import sys from Window import * +PROGRAM_NAME = 'PyGTK IMAP Checker' + def get_config(fname): conf = {} if os.path.isfile(fname): @@ -50,7 +52,7 @@ def main(argv): ' in configuration file\n') return 1 - window = Window(conf) + window = Window(PROGRAM_NAME, conf) window.run() save_config(config_fname, window.conf)