From 85c007431b0dbf1c8dd7d4e9e05b91d3dec82a70 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 22 Mar 2011 12:50:56 -0400 Subject: [PATCH] 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 file changed, 7 insertions(+) diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 08c5705c9..d1fff2d05 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',