Skip to content
Snippets Groups Projects
Commit 738723c6 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Settings: Pass func as string

parent 6ab6bdaf
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,9 @@ def disconnect_signals(self, object_):
if func is None or func.__self__ is object_:
handlers.remove(handler)
def bind_signal(self, setting, widget, func, account=None, jid=None):
def bind_signal(self, setting, widget, func_name, account=None, jid=None):
callbacks = self._callbacks[(setting, account, jid)]
func = getattr(widget, func_name)
callbacks.append(func)
def _on_destroy(*args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment