From 4e86d1bd29890cfb7bc02f5bcf434e175d810d1a Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 25 Jul 2013 13:28:53 -0300 Subject: Make calls to leap.common.events asynchronous. --- src/leap/gui/mainwindow.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/leap/gui') diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py index baa5f385..1a82d600 100644 --- a/src/leap/gui/mainwindow.py +++ b/src/leap/gui/mainwindow.py @@ -117,13 +117,12 @@ class MainWindow(QtGui.QMainWindow): QtGui.QMainWindow.__init__(self) # register leap events - - # XXX ------- this is blocking ----------- register(signal=proto.UPDATER_NEW_UPDATES, - callback=self._new_updates_available) + callback=self._new_updates_available, + reqcbk=lambda resp: None) # make rpc call async register(signal=proto.RAISE_WINDOW, - callback=self._on_raise_window_event) - # XXX ------- this is blocking ----------- + callback=self._on_raise_window_event, + reqcbk=lambda resp: None) # make rpc call async self._quit_callback = quit_callback -- cgit v1.2.3