[orca/orca-xdesktop] Fix for bug 653642 - Alt+F4 followed by Escape leaves the Orca window closed - but Orca still runnin
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/orca-xdesktop] Fix for bug 653642 - Alt+F4 followed by Escape leaves the Orca window closed - but Orca still runnin
- Date: Wed, 29 Jun 2011 21:33:37 +0000 (UTC)
commit dfcf50a391d9c9957ba7ef6ed41091da9e774b1e
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Wed Jun 29 17:32:47 2011 -0400
Fix for bug 653642 - Alt+F4 followed by Escape leaves the Orca window closed - but Orca still running
src/orca/orca_quit.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/orca_quit.py b/src/orca/orca_quit.py
index b58cccc..7aee571 100644
--- a/src/orca/orca_quit.py
+++ b/src/orca/orca_quit.py
@@ -50,6 +50,7 @@ class OrcaQuitGUI(orca_gtkbuilder.GtkBuilderWrapper):
"""
quitDialog = self.get_widget("quitDialog")
+ quitDialog.connect('delete_event', self.quitDialogClosed)
# Set the current time on the quit GUI dialog so that it'll
# get focus. set_user_time is a new call in pygtk 2.9.2 or later.
@@ -93,6 +94,12 @@ class OrcaQuitGUI(orca_gtkbuilder.GtkBuilderWrapper):
orca.shutdown()
+ def quitDialogClosed(self, widget, data):
+ """Signal handler for the 'delete' signal. This is the equivalent
+ of the 'no' button being pressed."""
+
+ self.quitNoButtonClicked(None)
+
def quitDialogDestroyed(self, widget):
"""Signal handler for the "destroyed" signal for the quitDialog
GtkWindow widget. Reset OS to None, so that the GUI can be rebuilt
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]