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:
parent
cbd187369e
commit
85c007431b
@ -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() {
|
cancel: function() {
|
||||||
this._stopTimer();
|
this._stopTimer();
|
||||||
DBus.session.emit_signal('/org/gnome/SessionManager/EndSessionDialog',
|
DBus.session.emit_signal('/org/gnome/SessionManager/EndSessionDialog',
|
||||||
|
Loading…
Reference in New Issue
Block a user