Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-07-31 10:23:03 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-07-31 10:23:03 +0400
commita5584151c2af88955092d200e8bcf9d75804b5ac (patch)
tree88fcb3aad6df4e0a72959511fa00bae7b13b89c7 /src
parent0c662cf2fdd61dc18b34c0708612bd390d89897e (diff)
Use InvitationReceivedDialog asynchronously. see #4147
Diffstat (limited to 'src')
-rw-r--r--src/dialogs.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/dialogs.py b/src/dialogs.py
index 8f0c4cd47..ef605291a 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -2927,8 +2927,8 @@ class PrivacyListsWindow:
PrivacyListWindow(self.account, name, 'EDIT')
class InvitationReceivedDialog:
- def __init__(self, account, room_jid, contact_jid, password = None,
- comment = None, is_continued = False):
+ def __init__(self, account, room_jid, contact_jid, password=None,
+ comment=None, is_continued=False):
self.room_jid = room_jid
self.account = account
@@ -2951,9 +2951,8 @@ class InvitationReceivedDialog:
comment = _('Comment: %s') % comment
sectext += '\n\n%s' % comment
sectext += '\n\n' + _('Do you want to accept the invitation?')
-
- dialog = YesNoDialog(pritext, sectext)
- if dialog.get_response() == gtk.RESPONSE_YES:
+
+ def on_yes(checked):
try:
if self.is_continued:
gajim.interface.join_gc_room(self.account, self.room_jid,
@@ -2963,6 +2962,8 @@ class InvitationReceivedDialog:
except GajimGeneralException:
pass
+ dialog = YesNoDialog(pritext, sectext, on_response_yes=on_yes)
+
class ProgressDialog:
def __init__(self, title_text, during_text, messages_queue):
'''during text is what to show during the procedure,