endSessionDialog: Fix wrong method name s/report_dbus_error/return_dbus_error
This commit is contained in:
parent
f967fd21f8
commit
90b08acbf1
@ -505,7 +505,7 @@ const EndSessionDialog = new Lang.Class({
|
|||||||
this._type = type;
|
this._type = type;
|
||||||
|
|
||||||
if (!(this._type in DialogContent)) {
|
if (!(this._type in DialogContent)) {
|
||||||
invocation.report_dbus_error('org.gnome.Shell.ModalDialog.TypeError',
|
invocation.return_dbus_error('org.gnome.Shell.ModalDialog.TypeError',
|
||||||
"Unknown dialog type requested");
|
"Unknown dialog type requested");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -521,7 +521,7 @@ const EndSessionDialog = new Lang.Class({
|
|||||||
this._updateButtons();
|
this._updateButtons();
|
||||||
|
|
||||||
if (!this.open(timestamp)) {
|
if (!this.open(timestamp)) {
|
||||||
invocation.report_dbus_error('org.gnome.Shell.ModalDialog.GrabError',
|
invocation.return_dbus_error('org.gnome.Shell.ModalDialog.GrabError',
|
||||||
"Cannot grab pointer and keyboard");
|
"Cannot grab pointer and keyboard");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user