make very E2E code transient for the calling window. See #7185
This commit is contained in:
parent
285c49ff58
commit
88ae275e85
|
@ -1623,10 +1623,13 @@ class YesNoDialog(HigDialog):
|
|||
"""
|
||||
|
||||
def __init__(self, pritext, sectext='', checktext='', text_label=None,
|
||||
on_response_yes=None, on_response_no=None, type_=gtk.MESSAGE_QUESTION):
|
||||
on_response_yes=None, on_response_no=None, type_=gtk.MESSAGE_QUESTION,
|
||||
transient_for=None):
|
||||
self.user_response_yes = on_response_yes
|
||||
self.user_response_no = on_response_no
|
||||
if hasattr(gajim.interface, 'roster') and gajim.interface.roster:
|
||||
if transient_for:
|
||||
parent = transient_for
|
||||
elif hasattr(gajim.interface, 'roster') and gajim.interface.roster:
|
||||
parent = gajim.interface.roster.window
|
||||
else:
|
||||
parent = None
|
||||
|
@ -5149,7 +5152,8 @@ class ESessionInfoWindow:
|
|||
self.session.verified_identity = False
|
||||
self.update_info()
|
||||
|
||||
YesNoDialog(pritext, sectext, on_response_yes=on_yes, on_response_no=on_no)
|
||||
YesNoDialog(pritext, sectext, on_response_yes=on_yes,
|
||||
on_response_no=on_no, transient_for=self.window)
|
||||
|
||||
class GPGInfoWindow:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue