Ensure that all signatures are defined in DBus interfaces
The DBus JS binding will complain if the signature of a method or of a signal is undefined, so we need to define it even if it is an empty string, and we need to use the correct property name for signals. https://bugzilla.gnome.org/show_bug.cgi?id=643374
This commit is contained in:
parent
6172cd3627
commit
0d2eb76cee
@ -7,7 +7,8 @@ const Signals = imports.signals;
|
|||||||
const PresenceIface = {
|
const PresenceIface = {
|
||||||
name: 'org.gnome.SessionManager.Presence',
|
name: 'org.gnome.SessionManager.Presence',
|
||||||
methods: [{ name: 'SetStatus',
|
methods: [{ name: 'SetStatus',
|
||||||
inSignature: 'u' }],
|
inSignature: 'u',
|
||||||
|
outSignature: '' }],
|
||||||
properties: [{ name: 'status',
|
properties: [{ name: 'status',
|
||||||
signature: 'u',
|
signature: 'u',
|
||||||
access: 'readwrite' }],
|
access: 'readwrite' }],
|
||||||
|
@ -54,7 +54,7 @@ const EndSessionDialogIface = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
signals: [{ name: 'Canceled',
|
signals: [{ name: 'Canceled',
|
||||||
outSignature: '',
|
inSignature: '',
|
||||||
}],
|
}],
|
||||||
properties: []
|
properties: []
|
||||||
};
|
};
|
||||||
|
@ -49,7 +49,7 @@ const PowerManagerInterface = {
|
|||||||
{ name: 'GetPrimaryDevice', inSignature: '', outSignature: '(susbut)' },
|
{ name: 'GetPrimaryDevice', inSignature: '', outSignature: '(susbut)' },
|
||||||
],
|
],
|
||||||
signals: [
|
signals: [
|
||||||
{ name: 'Changed', outSignature: '' },
|
{ name: 'Changed', inSignature: '' },
|
||||||
],
|
],
|
||||||
properties: [
|
properties: [
|
||||||
{ name: 'Icon', signature: 's', access: 'read' },
|
{ name: 'Icon', signature: 's', access: 'read' },
|
||||||
|
Loading…
Reference in New Issue
Block a user