statusNotifierWatcher: Fix RegisterStatusNotifierHost method name and returned error
Use the actual name for RegisterStatusNotifierHost and ensure that we
return an error in the expected way.
Marco Trevisan (TreviƱo)
3 years ago
1 | 1 |
<method name="RegisterStatusNotifierItem">
|
2 | 2 |
<arg type="s" direction="in" />
|
3 | 3 |
</method>
|
4 | |
<method name="RegisterNotificationHost">
|
|
4 |
<method name="RegisterStatusNotifierHost">
|
5 | 5 |
<arg type="s" direction="in" />
|
6 | 6 |
</method>
|
7 | 7 |
<property name="RegisteredStatusNotifierItems" type="as" access="read" />
|
191 | 191 |
this._dbusImpl.emit_property_changed('RegisteredStatusNotifierItems', GLib.Variant.new('as', this.RegisteredStatusNotifierItems));
|
192 | 192 |
}
|
193 | 193 |
|
194 | |
RegisterNotificationHost(service) {
|
195 | |
throw new Gio.DBusError('org.gnome.Shell.UnsupportedMethod',
|
196 | |
'Registering additional notification hosts is not supported');
|
|
194 |
RegisterStatusNotifierHostAsync(_service, invocation) {
|
|
195 |
invocation.return_error_literal(
|
|
196 |
Gio.DBusError,
|
|
197 |
Gio.DBusError.NOT_SUPPORTED,
|
|
198 |
'Registering additional notification hosts is not supported');
|
197 | 199 |
}
|
198 | 200 |
|
199 | 201 |
IsNotificationHostRegistered() {
|