Adapt to upstream ConfirmationDialog name change
This commit is contained in:
@@ -32,7 +32,7 @@ from gajim.common.const import FTState
|
|||||||
from gajim.common.filetransfer import FileTransfer
|
from gajim.common.filetransfer import FileTransfer
|
||||||
from gajim.plugins.plugins_i18n import _
|
from gajim.plugins.plugins_i18n import _
|
||||||
from gajim.gtk.dialogs import DialogButton
|
from gajim.gtk.dialogs import DialogButton
|
||||||
from gajim.gtk.dialogs import NewConfirmationDialog
|
from gajim.gtk.dialogs import ConfirmationDialog
|
||||||
|
|
||||||
from omemo.backend.aes import aes_decrypt_file
|
from omemo.backend.aes import aes_decrypt_file
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ class FileDecryption:
|
|||||||
def _open_folder():
|
def _open_folder():
|
||||||
open_file(file_path.parent)
|
open_file(file_path.parent)
|
||||||
|
|
||||||
NewConfirmationDialog(
|
ConfirmationDialog(
|
||||||
_('Open File'),
|
_('Open File'),
|
||||||
_('Open File?'),
|
_('Open File?'),
|
||||||
_('Do you want to open %s?') % file_path.name,
|
_('Do you want to open %s?') % file_path.name,
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ from gi.repository import GdkPixbuf
|
|||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
from gajim.plugins.plugins_i18n import _
|
from gajim.plugins.plugins_i18n import _
|
||||||
from gajim.plugins.helpers import get_builder
|
from gajim.plugins.helpers import get_builder
|
||||||
from gajim.gtk.dialogs import NewConfirmationDialog
|
from gajim.gtk.dialogs import ConfirmationDialog
|
||||||
from gajim.gtk.dialogs import DialogButton
|
from gajim.gtk.dialogs import DialogButton
|
||||||
|
|
||||||
from omemo.backend.util import Trust
|
from omemo.backend.util import Trust
|
||||||
@@ -293,7 +293,7 @@ class KeyRow(Gtk.ListBoxRow):
|
|||||||
self.get_parent().remove(self)
|
self.get_parent().remove(self)
|
||||||
self.destroy()
|
self.destroy()
|
||||||
|
|
||||||
NewConfirmationDialog(
|
ConfirmationDialog(
|
||||||
_('Delete'),
|
_('Delete'),
|
||||||
_('Delete Fingerprint'),
|
_('Delete Fingerprint'),
|
||||||
_('Doing so will permanently delete this Fingerprint'),
|
_('Doing so will permanently delete this Fingerprint'),
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ from gi.repository import Gtk
|
|||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
|
|
||||||
from gajim.gtk.dialogs import NewConfirmationDialog
|
from gajim.gtk.dialogs import ConfirmationDialog
|
||||||
from gajim.gtk.dialogs import DialogButton
|
from gajim.gtk.dialogs import DialogButton
|
||||||
from gajim.plugins.plugins_i18n import _
|
from gajim.plugins.plugins_i18n import _
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ class KeyRow(Gtk.ListBoxRow):
|
|||||||
self.key.delete()
|
self.key.delete()
|
||||||
self.destroy()
|
self.destroy()
|
||||||
|
|
||||||
NewConfirmationDialog(
|
ConfirmationDialog(
|
||||||
_('Delete'),
|
_('Delete'),
|
||||||
_('Delete Public Key'),
|
_('Delete Public Key'),
|
||||||
_('This will permanently delete this public key'),
|
_('This will permanently delete this public key'),
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ from gajim.plugins.plugins_i18n import _
|
|||||||
|
|
||||||
from gajim.gtk.dialogs import ErrorDialog
|
from gajim.gtk.dialogs import ErrorDialog
|
||||||
from gajim.gtk.dialogs import DialogButton
|
from gajim.gtk.dialogs import DialogButton
|
||||||
from gajim.gtk.dialogs import NewConfirmationCheckDialog
|
from gajim.gtk.dialogs import ConfirmationCheckDialog
|
||||||
|
|
||||||
from pgp.gtk.key import KeyDialog
|
from pgp.gtk.key import KeyDialog
|
||||||
from pgp.gtk.config import PGPConfigDialog
|
from pgp.gtk.config import PGPConfigDialog
|
||||||
@@ -136,7 +136,7 @@ class PGPPlugin(GajimPlugin):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _on_not_trusted(event):
|
def _on_not_trusted(event):
|
||||||
NewConfirmationCheckDialog(
|
ConfirmationCheckDialog(
|
||||||
_('Untrusted PGP key'),
|
_('Untrusted PGP key'),
|
||||||
_('Untrusted PGP key'),
|
_('Untrusted PGP key'),
|
||||||
_('The PGP key used to encrypt this chat is not '
|
_('The PGP key used to encrypt this chat is not '
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ from gajim.plugins.plugins_i18n import _
|
|||||||
|
|
||||||
from gajim.gtk.dialogs import DialogButton
|
from gajim.gtk.dialogs import DialogButton
|
||||||
from gajim.gtk.dialogs import InformationDialog
|
from gajim.gtk.dialogs import InformationDialog
|
||||||
from gajim.gtk.dialogs import NewConfirmationCheckDialog
|
from gajim.gtk.dialogs import ConfirmationCheckDialog
|
||||||
|
|
||||||
from plugin_installer.config_dialog import PluginInstallerConfigDialog
|
from plugin_installer.config_dialog import PluginInstallerConfigDialog
|
||||||
from plugin_installer.widget import AvailablePage
|
from plugin_installer.widget import AvailablePage
|
||||||
@@ -130,7 +130,7 @@ class PluginInstaller(GajimPlugin):
|
|||||||
self._download_plugins(plugins)
|
self._download_plugins(plugins)
|
||||||
|
|
||||||
plugins_str = '\n' + '\n'.join([plugin.name for plugin in plugins])
|
plugins_str = '\n' + '\n'.join([plugin.name for plugin in plugins])
|
||||||
NewConfirmationCheckDialog(
|
ConfirmationCheckDialog(
|
||||||
_('Plugin Updates'),
|
_('Plugin Updates'),
|
||||||
_('Plugin Updates Available'),
|
_('Plugin Updates Available'),
|
||||||
_('There are updates for your plugins:\n'
|
_('There are updates for your plugins:\n'
|
||||||
@@ -236,7 +236,7 @@ class PluginInstaller(GajimPlugin):
|
|||||||
def _on_ok(is_checked):
|
def _on_ok(is_checked):
|
||||||
if is_checked:
|
if is_checked:
|
||||||
self.config['auto_update_feedback'] = False
|
self.config['auto_update_feedback'] = False
|
||||||
NewConfirmationCheckDialog(
|
ConfirmationCheckDialog(
|
||||||
_('Plugins Updated'),
|
_('Plugins Updated'),
|
||||||
_('Plugins Updated'),
|
_('Plugins Updated'),
|
||||||
_('Plugin updates have successfully been downloaded.\n'
|
_('Plugin updates have successfully been downloaded.\n'
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ from gajim.common import ged
|
|||||||
from gajim.common.connection_handlers_events import InformationEvent
|
from gajim.common.connection_handlers_events import InformationEvent
|
||||||
|
|
||||||
from gajim.gtk.dialogs import DialogButton
|
from gajim.gtk.dialogs import DialogButton
|
||||||
from gajim.gtk.dialogs import NewConfirmationDialog
|
from gajim.gtk.dialogs import ConfirmationDialog
|
||||||
|
|
||||||
from gajim.plugins import GajimPlugin
|
from gajim.plugins import GajimPlugin
|
||||||
from gajim.plugins.helpers import log
|
from gajim.plugins.helpers import log
|
||||||
@@ -160,7 +160,7 @@ class TictactoePlugin(GajimPlugin):
|
|||||||
else:
|
else:
|
||||||
name = obj.jid
|
name = obj.jid
|
||||||
|
|
||||||
NewConfirmationDialog(
|
ConfirmationDialog(
|
||||||
_('Incoming Tictactoe'),
|
_('Incoming Tictactoe'),
|
||||||
_('Incoming Tictactoe Invitation'),
|
_('Incoming Tictactoe Invitation'),
|
||||||
_('%(name)s (%(jid)s) wants to play tictactoe with you.') % {
|
_('%(name)s (%(jid)s) wants to play tictactoe with you.') % {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ from gajim.common.jingle_transport import JingleTransport
|
|||||||
from gajim.common.jingle_transport import TransportType
|
from gajim.common.jingle_transport import TransportType
|
||||||
|
|
||||||
from gajim.gtk.dialogs import DialogButton
|
from gajim.gtk.dialogs import DialogButton
|
||||||
from gajim.gtk.dialogs import NewConfirmationDialog
|
from gajim.gtk.dialogs import ConfirmationDialog
|
||||||
|
|
||||||
from gajim.plugins import GajimPlugin
|
from gajim.plugins import GajimPlugin
|
||||||
from gajim.plugins.gajimplugin import GajimPluginException
|
from gajim.plugins.gajimplugin import GajimPluginException
|
||||||
@@ -163,7 +163,7 @@ class WhiteboardPlugin(GajimPlugin):
|
|||||||
else:
|
else:
|
||||||
name = jid
|
name = jid
|
||||||
|
|
||||||
NewConfirmationDialog(
|
ConfirmationDialog(
|
||||||
_('Incoming Whiteboard'),
|
_('Incoming Whiteboard'),
|
||||||
_('Incoming Whiteboard Request'),
|
_('Incoming Whiteboard Request'),
|
||||||
_('%(name)s (%(jid)s) wants to start a whiteboard with '
|
_('%(name)s (%(jid)s) wants to start a whiteboard with '
|
||||||
|
|||||||
Reference in New Issue
Block a user