[thorstenp] fix global use
This commit is contained in:
parent
7701f29beb
commit
b3efd60822
|
@ -316,7 +316,6 @@ if __name__ == '__main__':
|
||||||
resolver = Resolver(idlequeue)
|
resolver = Resolver(idlequeue)
|
||||||
|
|
||||||
def clicked(widget):
|
def clicked(widget):
|
||||||
global resolver
|
|
||||||
host = text_view.get_text()
|
host = text_view.get_text()
|
||||||
def on_result(host, result_array):
|
def on_result(host, result_array):
|
||||||
print 'Result:\n' + repr(result_array)
|
print 'Result:\n' + repr(result_array)
|
||||||
|
|
|
@ -22,7 +22,7 @@ growler = None
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
global growler, notifications
|
global growler
|
||||||
icon = open(os.path.join(gajim.DATA_DIR, "pixmaps", "gajim.icns"), "r")
|
icon = open(os.path.join(gajim.DATA_DIR, "pixmaps", "gajim.icns"), "r")
|
||||||
growler = GrowlNotifier(applicationName = "Gajim",
|
growler = GrowlNotifier(applicationName = "Gajim",
|
||||||
notifications = notifications,
|
notifications = notifications,
|
||||||
|
@ -33,7 +33,6 @@ def init():
|
||||||
|
|
||||||
|
|
||||||
def notify(event_type, jid, account, msg_type, path_to_image, title, text):
|
def notify(event_type, jid, account, msg_type, path_to_image, title, text):
|
||||||
global notifications
|
|
||||||
if not event_type in notifications:
|
if not event_type in notifications:
|
||||||
event_type = GENERIC_NOTIF
|
event_type = GENERIC_NOTIF
|
||||||
if not text:
|
if not text:
|
||||||
|
|
|
@ -6,7 +6,6 @@ copy_item = None
|
||||||
|
|
||||||
|
|
||||||
def menu_item_activate_cb(item, user_data):
|
def menu_item_activate_cb(item, user_data):
|
||||||
global open_item, copy_item
|
|
||||||
print "Item activated: %s" % user_data
|
print "Item activated: %s" % user_data
|
||||||
|
|
||||||
#g_object_get (G_OBJECT (copy_item),
|
#g_object_get (G_OBJECT (copy_item),
|
||||||
|
|
Loading…
Reference in New Issue