Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
gajim
gajim
Commits
ee7ad12f
Commit
ee7ad12f
authored
Sep 02, 2019
by
Daniel Brötzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DialogButton: Add Accept button type
parent
5c04e715
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gajim/gtk/dialogs.py
gajim/gtk/dialogs.py
+5
-0
No files found.
gajim/gtk/dialogs.py
View file @
ee7ad12f
...
...
@@ -52,6 +52,11 @@ def make(cls, type_=None, **kwargs):
default_kwargs
[
'response'
]
=
Gtk
.
ResponseType
.
CANCEL
default_kwargs
[
'text'
]
=
_
(
'Cancel'
)
elif
type_
==
'Accept'
:
default_kwargs
[
'response'
]
=
Gtk
.
ResponseType
.
OK
default_kwargs
[
'text'
]
=
_
(
'Accept'
)
default_kwargs
[
'action'
]
=
ButtonAction
.
SUGGESTED
elif
type_
==
'Delete'
:
default_kwargs
[
'response'
]
=
Gtk
.
ResponseType
.
OK
default_kwargs
[
'text'
]
=
_
(
'Delete'
)
...
...
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