Author: asterix Date: 2008-12-02 16:13:08 +0100 (Tue, 02 Dec 2008) New Revision: 10751
Modified: trunk/src/common/nslookup.py trunk/src/osx/growler.py trunk/src/osx/syncmenu/test-menu.py Log: [thorstenp] fix global use
Modified: trunk/src/common/nslookup.py =================================================================== --- trunk/src/common/nslookup.py 2008-12-02 15:10:31 UTC (rev 10750) +++ trunk/src/common/nslookup.py 2008-12-02 15:13:08 UTC (rev 10751) @@ -316,7 +316,6 @@ 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)
Modified: trunk/src/osx/growler.py =================================================================== --- trunk/src/osx/growler.py 2008-12-02 15:10:31 UTC (rev 10750) +++ trunk/src/osx/growler.py 2008-12-02 15:13:08 UTC (rev 10751) @@ -22,7 +22,7 @@
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 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:
Modified: trunk/src/osx/syncmenu/test-menu.py =================================================================== --- trunk/src/osx/syncmenu/test-menu.py 2008-12-02 15:10:31 UTC (rev 10750) +++ trunk/src/osx/syncmenu/test-menu.py 2008-12-02 15:13:08 UTC (rev 10751) @@ -6,7 +6,6 @@
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 @@
gtk.main()
-# vim: se ts=3: \ No newline at end of file +# vim: se ts=3: