diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-12-05 10:55:39 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-12-05 11:25:22 -0600 |
commit | 3c6d273d0f36e7d325b5a6bafe6d2c2ea0718541 (patch) | |
tree | a4ea9689fd9c5ffb3e5c26de5b6acb64fc7fc6aa /atspi/atspi-registry.c | |
parent | 9b96a257e80621a35ebcb028fd3008fbae746f6b (diff) | |
download | at-spi2-core-3c6d273d0f36e7d325b5a6bafe6d2c2ea0718541.tar.gz |
atspi_deregister_device_event_listener(): turn into a no-op
Per the previous commits, this function is never called from pyatspi2
nor orca. They do monitoring of mouse events via the Registry interface.
Diffstat (limited to 'atspi/atspi-registry.c')
-rw-r--r-- | atspi/atspi-registry.c | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/atspi/atspi-registry.c b/atspi/atspi-registry.c index 823ca934..1ec36599 100644 --- a/atspi/atspi-registry.c +++ b/atspi/atspi-registry.c @@ -388,33 +388,11 @@ atspi_register_device_event_listener (AtspiDeviceListener *listener, **/ gboolean atspi_deregister_device_event_listener (AtspiDeviceListener *listener, - void *filter, GError **error) + void *filter, + GError **error) { - dbus_uint32_t event_types = 0; - gchar *path; - DBusError d_error; - - if (!listener) - { - return FALSE; - } - - dbus_error_init (&d_error); - - path = _atspi_device_listener_get_path (listener); - - event_types |= (1 << ATSPI_BUTTON_PRESSED_EVENT); - event_types |= (1 << ATSPI_BUTTON_RELEASED_EVENT); - - dbind_method_call_reentrant (_atspi_bus(), atspi_bus_registry, atspi_path_dec, atspi_interface_dec, "DeregisterDeviceEventListener", &d_error, "ou", path, event_types); - if (dbus_error_is_set (&d_error)) - { - g_warning ("DeregisterDeviceEventListener failed: %s", d_error.message); - dbus_error_free (&d_error); - } - - g_free (path); - return TRUE; + /* See https://gitlab.gnome.org/GNOME/at-spi2-core/-/issues/94 for why this code is removed */ + return FALSE; } static gboolean |