Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
217
Issues
217
List
Boards
Labels
Milestones
Merge Requests
28
Merge Requests
28
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
eef9e264
Commit
eef9e264
authored
Feb 04, 2010
by
Yann Leboulanger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't call twice cancel handler
parent
c6425563
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/dialogs.py
src/dialogs.py
+6
-2
No files found.
src/dialogs.py
View file @
eef9e264
...
...
@@ -1290,8 +1290,9 @@ class Dialog(gtk.Dialog):
class
HigDialog
(
gtk
.
MessageDialog
):
def
__init__
(
self
,
parent
,
type_
,
buttons
,
pritext
,
sectext
,
on_response_ok
=
None
,
on_response_cancel
=
None
,
on_response_yes
=
None
,
on_response_no
=
None
):
on_response_ok
=
None
,
on_response_cancel
=
None
,
on_response_yes
=
None
,
on_response_no
=
None
):
self
.
call_cancel_on_destroy
=
True
gtk
.
MessageDialog
.
__init__
(
self
,
parent
,
gtk
.
DIALOG_DESTROY_WITH_PARENT
|
gtk
.
DIALOG_MODAL
,
type_
,
buttons
,
message_format
=
pritext
)
...
...
@@ -1319,6 +1320,8 @@ class HigDialog(gtk.MessageDialog):
self
.
connect
(
'destroy'
,
self
.
on_dialog_destroy
)
def
on_dialog_destroy
(
self
,
widget
):
if
not
self
.
call_cancel_on_destroy
:
return
cancel_handler
=
self
.
possible_responses
[
gtk
.
STOCK_CANCEL
]
if
not
cancel_handler
:
return
False
...
...
@@ -1631,6 +1634,7 @@ class ConfirmationDialogDubbleCheck(ConfirmationDialog):
self
.
user_response_cancel
[
0
](
*
self
.
user_response_cancel
[
1
:])
else
:
self
.
user_response_cancel
()
self
.
call_cancel_on_destroy
=
False
self
.
destroy
()
def
is_checked
(
self
):
...
...
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