Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
58
Issues
58
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
c222bf5a
Commit
c222bf5a
authored
Jul 09, 2019
by
Daniel Brötzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pgp] Replace YesNoDialog
parent
03c04065
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
pgp/plugin.py
pgp/plugin.py
+11
-5
No files found.
pgp/plugin.py
View file @
c222bf5a
...
...
@@ -27,7 +27,8 @@ from gajim.plugins import GajimPlugin
from
gajim.plugins.plugins_i18n
import
_
from
gajim.gtk.dialogs
import
ErrorDialog
from
gajim.gtk.dialogs
import
YesNoDialog
from
gajim.gtk.dialogs
import
DialogButton
from
gajim.gtk.dialogs
import
NewConfirmationCheckDialog
from
pgp.gtk.key
import
KeyDialog
from
pgp.gtk.config
import
PGPConfigDialog
...
...
@@ -134,14 +135,19 @@ class PGPPlugin(GajimPlugin):
@
staticmethod
def
_on_not_trusted
(
event
):
YesNoDialog
(
NewConfirmationCheckDialog
(
_
(
'Untrusted PGP key'
),
_
(
'Untrusted PGP key'
),
_
(
'The PGP key used to encrypt this chat is not '
'trusted. Do you really want to encrypt this '
'message?'
),
checktext
=
_
(
'_Do not ask me again'
),
on_response_yes
=
event
.
on_yes
,
on_response_no
=
event
.
on_no
)
_
(
'_Do not ask me again'
),
[
DialogButton
.
make
(
'Cancel'
,
text
=
_
(
'_No'
),
callback
=
event
.
on_no
),
DialogButton
.
make
(
'OK'
,
text
=
_
(
'_Encrypt Anyway'
),
callback
=
event
.
on_yes
)]).
show
()
@
staticmethod
def
_before_sendmessage
(
chat_control
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment