Codebase list gnome-shell-extension-appindicator / 3784027
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
2 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
11 <method name="RegisterStatusNotifierItem">
22 <arg type="s" direction="in" />
33 </method>
4 <method name="RegisterNotificationHost">
4 <method name="RegisterStatusNotifierHost">
55 <arg type="s" direction="in" />
66 </method>
77 <property name="RegisteredStatusNotifierItems" type="as" access="read" />
191191 this._dbusImpl.emit_property_changed('RegisteredStatusNotifierItems', GLib.Variant.new('as', this.RegisteredStatusNotifierItems));
192192 }
193193
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');
197199 }
198200
199201 IsNotificationHostRegistered() {