changeset c3b5f390fa4a in /home/hg/repos/gajim
author: Denis Fomin fominde@gmail.com branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=c3b5f390fa4a description: ChangePasswordDialog set transient_for. See #7185
diffstat:
src/config.py | 3 ++- src/dialogs.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 544fd812bd4a -r c3b5f390fa4a src/config.py --- a/src/config.py Sat Sep 07 21:50:18 2013 +0400 +++ b/src/config.py Sat Sep 07 22:06:48 2013 +0400 @@ -2303,7 +2303,8 @@ new_password)
try: - dialogs.ChangePasswordDialog(self.current_account, on_changed) + dialogs.ChangePasswordDialog(self.current_account, on_changed, + self.window) except GajimGeneralException: # if we showed ErrorDialog, there will not be dialog instance return diff -r 544fd812bd4a -r c3b5f390fa4a src/dialogs.py --- a/src/dialogs.py Sat Sep 07 21:50:18 2013 +0400 +++ b/src/dialogs.py Sat Sep 07 22:06:48 2013 +0400 @@ -2875,7 +2875,7 @@ gajim.interface.new_chat_from_jid(self.account, jid)
class ChangePasswordDialog: - def __init__(self, account, on_response): + def __init__(self, account, on_response, transient_for=None): # 'account' can be None if we are about to create our first one if not account or gajim.connections[account].connected < 2: ErrorDialog(_('You are not connected to the server'), @@ -2885,6 +2885,7 @@ self.on_response = on_response self.xml = gtkgui_helpers.get_gtk_builder('change_password_dialog.ui') self.dialog = self.xml.get_object('change_password_dialog') + self.dialog.set_transient_for(transient_for) self.password1_entry = self.xml.get_object('password1_entry') self.password2_entry = self.xml.get_object('password2_entry') self.dialog.connect('response', self.on_dialog_response)