From 2540ba749378ff6e2be7f81422db87f69671bcef Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 24 Aug 2012 09:14:08 +0200 Subject: [PATCH] don't call GTK functions inside a Thread. --- src/gui_interface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui_interface.py b/src/gui_interface.py index 86a78647e..8bb3ebae7 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -954,13 +954,13 @@ class Interface: # then the file is not corrupt jid = unicode(file_props.sender) if session.file_hash == hash_: - self.popup_ft_result(account, jid, file_props) - ft_win.set_status(file_props, 'ok') + gobject.idle_add(self.popup_ft_result, account, jid, file_props) + gobject.idle_add(ft_win.set_status, file_props, 'ok') else: # wrong hash, we need to get the file again! file_props.error = -10 - self.popup_ft_result(account, jid, file_props) - ft_win.set_status(file_props, 'hash_error') + gobject.idle_add(self.popup_ft_result, account, jid, file_props) + gobject.idle_add(ft_win.set_status, file_props, 'hash_error') # End jingle session if session: session.end_session()