remove code commited by mistake
This commit is contained in:
parent
5ff6ce2ca9
commit
ce1880927e
1 changed files with 0 additions and 18 deletions
18
src/gajim.py
18
src/gajim.py
|
@ -423,7 +423,6 @@ parser = optparser.OptionsParser(config_filename)
|
||||||
import roster_window
|
import roster_window
|
||||||
import profile_window
|
import profile_window
|
||||||
import config
|
import config
|
||||||
from threading import Thread
|
|
||||||
|
|
||||||
|
|
||||||
class PassphraseRequest:
|
class PassphraseRequest:
|
||||||
|
@ -483,22 +482,6 @@ class PassphraseRequest:
|
||||||
cancel_handler=_cancel)
|
cancel_handler=_cancel)
|
||||||
self.dialog_created = True
|
self.dialog_created = True
|
||||||
|
|
||||||
|
|
||||||
class ThreadInterface:
|
|
||||||
def __init__(self, func, func_args, callback, callback_args):
|
|
||||||
'''Call a function in a thread
|
|
||||||
|
|
||||||
:param func: the function to call in the thread
|
|
||||||
:param func_args: list or arguments for this function
|
|
||||||
:param callback: callback to call once function is finished
|
|
||||||
:param callback_args: list of arguments for this callback
|
|
||||||
'''
|
|
||||||
def thread_function(func, func_args, callback, callback_args):
|
|
||||||
output = func(*func_args)
|
|
||||||
gobject.idle_add(callback, output, *callback_args)
|
|
||||||
Thread(target=thread_function, args=(func, func_args, callback,
|
|
||||||
callback_args)).start()
|
|
||||||
|
|
||||||
class Interface:
|
class Interface:
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -3081,7 +3064,6 @@ class Interface:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
gajim.interface = self
|
gajim.interface = self
|
||||||
gajim.thread_interface = ThreadInterface
|
|
||||||
# This is the manager and factory of message windows set by the module
|
# This is the manager and factory of message windows set by the module
|
||||||
self.msg_win_mgr = None
|
self.msg_win_mgr = None
|
||||||
self.jabber_state_images = {'16': {}, '32': {}, 'opened': {},
|
self.jabber_state_images = {'16': {}, '32': {}, 'opened': {},
|
||||||
|
|
Loading…
Add table
Reference in a new issue