[gnome-shell] endSessionDialog: emit Closed signal when dialog disappears
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] endSessionDialog: emit Closed signal when dialog disappears
- Date: Tue, 22 Mar 2011 18:15:24 +0000 (UTC)
commit 85c007431b0dbf1c8dd7d4e9e05b91d3dec82a70
Author: Ray Strode <rstrode redhat com>
Date: Tue Mar 22 12:50:56 2011 -0400
endSessionDialog: emit Closed signal when dialog disappears
The session manager needs to keep its internal state for the
dialog in sync with ours.
https://bugzilla.gnome.org/show_bug.cgi?id=645485
js/ui/endSessionDialog.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index 08c5705..d1fff2d 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -406,6 +406,13 @@ EndSessionDialog.prototype = {
}]);
},
+ close: function() {
+ ModalDialog.ModalDialog.prototype.close.call(this);
+ DBus.session.emit_signal('/org/gnome/SessionManager/EndSessionDialog',
+ 'org.gnome.SessionManager.EndSessionDialog',
+ 'Closed', '', []);
+ },
+
cancel: function() {
this._stopTimer();
DBus.session.emit_signal('/org/gnome/SessionManager/EndSessionDialog',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]