Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mesonium
gajim
Commits
f5ea6686
Commit
f5ea6686
authored
5 years ago
by
Daniel Brötzmann
Committed by
Philipp Hörist
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Dialogs: Remove obsolete ConfirmationDialog
parent
2321839c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gajim/gtk/dialogs.py
+0
-33
0 additions, 33 deletions
gajim/gtk/dialogs.py
with
0 additions
and
33 deletions
gajim/gtk/dialogs.py
+
0
−
33
View file @
f5ea6686
...
...
@@ -137,39 +137,6 @@ def __init__(self, lang):
'
Highlighting misspelled words feature will not be used
'
)
%
lang
)
class
ConfirmationDialog
(
HigDialog
):
"""
HIG compliant confirmation dialog
"""
def
__init__
(
self
,
pritext
,
sectext
=
''
,
on_response_ok
=
None
,
on_response_cancel
=
None
,
transient_for
=
None
):
self
.
user_response_ok
=
on_response_ok
self
.
user_response_cancel
=
on_response_cancel
HigDialog
.
__init__
(
self
,
transient_for
,
Gtk
.
MessageType
.
QUESTION
,
Gtk
.
ButtonsType
.
OK_CANCEL
,
pritext
,
sectext
,
self
.
on_response_ok
,
self
.
on_response_cancel
)
self
.
popup
()
def
on_response_ok
(
self
,
widget
):
if
self
.
user_response_ok
:
if
isinstance
(
self
.
user_response_ok
,
tuple
):
self
.
user_response_ok
[
0
](
*
self
.
user_response_ok
[
1
:])
else
:
self
.
user_response_ok
()
self
.
call_cancel_on_destroy
=
False
self
.
destroy
()
def
on_response_cancel
(
self
,
widget
):
if
self
.
user_response_cancel
:
if
isinstance
(
self
.
user_response_cancel
,
tuple
):
self
.
user_response_cancel
[
0
](
*
self
.
user_response_ok
[
1
:])
else
:
self
.
user_response_cancel
()
self
.
call_cancel_on_destroy
=
False
self
.
destroy
()
class
WarningDialog
(
HigDialog
):
"""
HIG compliant warning dialog
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment