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
This commit is contained in:
Ray Strode 2011-03-22 12:50:56 -04:00
parent cbd187369e
commit 85c007431b

View File

@ -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',