diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-10-20 22:08:25 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-10-20 22:08:25 +0400 |
commit | 297a81325bc14a252a18f3afc74ef8f91924de74 (patch) | |
tree | 0c2b4276d3fe1f3eeeaccebde546073a7fd76c6d | |
parent | dc5d7bcf7c6ddc63445d9b1ea0f9b74d05a128a9 (diff) |
[thorstenp] fix globals
-rw-r--r-- | src/common/nslookup.py | 1 | ||||
-rw-r--r-- | src/osx/growler.py | 3 | ||||
-rw-r--r-- | src/osx/syncmenu/test-menu.py | 3 |
3 files changed, 2 insertions, 5 deletions
diff --git a/src/common/nslookup.py b/src/common/nslookup.py index e6dec5c76..ca0cdc32e 100644 --- a/src/common/nslookup.py +++ b/src/common/nslookup.py @@ -316,7 +316,6 @@ if __name__ == '__main__': resolver = Resolver(idlequeue) def clicked(widget): - global resolver host = text_view.get_text() def on_result(host, result_array): print 'Result:\n' + repr(result_array) diff --git a/src/osx/growler.py b/src/osx/growler.py index 0a1dceb1a..3aa9b7adf 100644 --- a/src/osx/growler.py +++ b/src/osx/growler.py @@ -22,7 +22,7 @@ growler = None def init(): - global growler, notifications + global growler icon = open(os.path.join(gajim.DATA_DIR, "pixmaps", "gajim.icns"), "r") growler = GrowlNotifier(applicationName = "Gajim", notifications = notifications, @@ -33,7 +33,6 @@ def init(): def notify(event_type, jid, account, msg_type, path_to_image, title, text): - global notifications if not event_type in notifications: event_type = GENERIC_NOTIF if not text: diff --git a/src/osx/syncmenu/test-menu.py b/src/osx/syncmenu/test-menu.py index c0a1c18d9..e0f6e7174 100644 --- a/src/osx/syncmenu/test-menu.py +++ b/src/osx/syncmenu/test-menu.py @@ -6,7 +6,6 @@ copy_item = None def menu_item_activate_cb(item, user_data): - global open_item, copy_item print "Item activated: %s" % user_data #g_object_get (G_OBJECT (copy_item), @@ -77,4 +76,4 @@ syncmenu.takeover_menu(menubar) gtk.main() -# vim: se ts=3:
\ No newline at end of file +# vim: se ts=3: |