diff --git a/src/dialogs.py b/src/dialogs.py index 40a6c57ca..ae7b126d8 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1594,7 +1594,7 @@ class ConfirmationDialogCheck(ConfirmationDialog): """ return self.checkbutton.get_active() -class ConfirmationDialogDubbleCheck(ConfirmationDialog): +class ConfirmationDialogDoubbleCheck(ConfirmationDialog): """ HIG compliant confirmation dialog with 2 checkbuttons """ @@ -1969,9 +1969,9 @@ class InputTextDialog(CommonInputDialog): start_iter, end_iter = self.input_buffer.get_bounds() return self.input_buffer.get_text(start_iter, end_iter).decode('utf-8') -class DubbleInputDialog: +class DoubbleInputDialog: """ - Class for Dubble Input dialog + Class for Doubble Input dialog """ def __init__(self, title, label_str1, label_str2, input_str1=None, diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 65fbacff2..451168b67 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1762,7 +1762,7 @@ class GroupchatControl(ChatControlBase): jid) # Ask for a reason - dialogs.DubbleInputDialog(_('Destroying %s') % self.room_jid, + dialogs.DoubbleInputDialog(_('Destroying %s') % self.room_jid, _('You are going to definitively destroy this room.\n' 'You may specify a reason below:'), _('You may also enter an alternate venue:'), ok_handler=on_ok) diff --git a/src/gui_interface.py b/src/gui_interface.py index 4ee0b1236..07e483c06 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -1834,7 +1834,7 @@ class Interface: if 'ssl_error' in self.instances[account]['online_dialog']: self.instances[account]['online_dialog']['ssl_error'].destroy() self.instances[account]['online_dialog']['ssl_error'] = \ - dialogs.ConfirmationDialogDubbleCheck(pritext, sectext, checktext1, + dialogs.ConfirmationDialogDoubbleCheck(pritext, sectext, checktext1, checktext2, on_response_ok=on_ok, on_response_cancel=on_cancel) def handle_event_fingerprint_error(self, account, data): @@ -1889,7 +1889,7 @@ class Interface: if 'plain_connection' in self.instances[account]['online_dialog']: self.instances[account]['online_dialog']['plain_connection'].destroy() self.instances[account]['online_dialog']['plain_connection'] = \ - dialogs.ConfirmationDialogDubbleCheck(pritext, sectext, + dialogs.ConfirmationDialogDoubbleCheck(pritext, sectext, checktext1, checktext2, on_response_ok=on_ok, on_response_cancel=on_cancel, is_modal=False) @@ -1924,7 +1924,7 @@ class Interface: if 'insecure_ssl' in self.instances[account]['online_dialog']: self.instances[account]['online_dialog']['insecure_ssl'].destroy() self.instances[account]['online_dialog']['insecure_ssl'] = \ - dialogs.ConfirmationDialogDubbleCheck(pritext, sectext, + dialogs.ConfirmationDialogDoubbleCheck(pritext, sectext, checktext1, checktext2, on_response_ok=on_ok, on_response_cancel=on_cancel, is_modal=False)