Changeset 10091

Show
Ignore:
Timestamp:
07/31/08 08:23:03 (4 months ago)
Author:
asterix
Message:

Use InvitationReceivedDialog? asynchronously. see #4147

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/dialogs.py

    r10090 r10091  
    29282928 
    29292929class InvitationReceivedDialog: 
    2930         def __init__(self, account, room_jid, contact_jid, password = None, 
    2931         comment = None, is_continued = False): 
     2930        def __init__(self, account, room_jid, contact_jid, password=None, 
     2931        comment=None, is_continued=False): 
    29322932 
    29332933                self.room_jid = room_jid 
     
    29522952                        sectext += '\n\n%s' % comment 
    29532953                sectext += '\n\n' + _('Do you want to accept the invitation?') 
    2954                  
    2955                 dialog = YesNoDialog(pritext, sectext) 
    2956                 if dialog.get_response() == gtk.RESPONSE_YES: 
     2954 
     2955                def on_yes(checked): 
    29572956                        try: 
    29582957                                if self.is_continued: 
     
    29632962                        except GajimGeneralException: 
    29642963                                pass 
     2964 
     2965                dialog = YesNoDialog(pritext, sectext, on_response_yes=on_yes) 
    29652966 
    29662967class ProgressDialog: