Commit 58726581 authored by Dicson's avatar Dicson

Set parent window for ChooseGPGKeyDialog.

parent 926b7d85
......@@ -2429,7 +2429,8 @@ class AccountsWindow:
keyID[0])
dialogs.ChooseGPGKeyDialog(_('OpenPGP Key Selection'),
_('Choose your OpenPGP key'), secret_keys, on_key_selected)
_('Choose your OpenPGP key'), secret_keys, on_key_selected,
transient_for=self.window)
def on_use_gpg_agent_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'use_gpg_agent')
......
......@@ -277,12 +277,14 @@ class ChooseGPGKeyDialog:
"""
def __init__(self, title_text, prompt_text, secret_keys, on_response,
selected=None):
selected=None, transient_for=None):
'''secret_keys : {keyID: userName, ...}'''
self.on_response = on_response
xml = gtkgui_helpers.get_gtk_builder('choose_gpg_key_dialog.ui')
self.window = xml.get_object('choose_gpg_key_dialog')
self.window.set_title(title_text)
if not transient_for:
self.window.set_transient_for(gajim.interface.roster.window)
self.keys_treeview = xml.get_object('keys_treeview')
prompt_label = xml.get_object('prompt_label')
prompt_label.set_text(prompt_text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment