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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yuki
gajim-plugins
Commits
7b702cc0
Commit
7b702cc0
authored
Mar 26, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[openpgp] Adapt to Gajim dialog changes
parent
edf012b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
openpgp/gtk/key.py
openpgp/gtk/key.py
+8
-9
No files found.
openpgp/gtk/key.py
View file @
7b702cc0
...
...
@@ -20,9 +20,10 @@ import time
from
gi.repository
import
Gtk
from
gajim.common
import
app
from
gajim.common.const
import
DialogButton
,
ButtonAction
from
gajim.common.const
import
ButtonAction
from
gajim.gtk.dialogs
import
NewConfirmationDialog
from
gajim.gtk.dialogs
import
DialogButton
from
gajim.plugins.plugins_i18n
import
_
from
openpgp.modules.util
import
Trust
...
...
@@ -120,17 +121,15 @@ class KeyRow(Gtk.ListBoxRow):
self
.
key
.
delete
()
self
.
destroy
()
buttons
=
{
Gtk
.
ResponseType
.
CANCEL
:
DialogButton
(
'Cancel'
),
Gtk
.
ResponseType
.
OK
:
DialogButton
(
'Delete'
,
_remove
,
ButtonAction
.
DESTRUCTIVE
),
}
NewConfirmationDialog
(
_
(
'Delete'
),
_
(
'Delete Public Key'
),
_
(
'This will permanently delete this public key'
),
buttons
,
[
DialogButton
.
make
(
'Cancel'
),
DialogButton
.
make
(
'OK'
,
text
=
_
(
'Delete'
),
callback
=
_remove
,
action
=
ButtonAction
.
DESTRUCTIVE
)],
transient_for
=
self
.
get_toplevel
())
def
set_trust
(
self
,
trust
):
...
...
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