From cfe35586107d7c42eb3af7aa38ee23df22f718d0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 10 Mar 2024 10:02:24 -0400 Subject: [PATCH] a11y: Add GetOffsetAtPoint We don't handle it yet. --- gtk/a11y/gtkatspitext.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gtk/a11y/gtkatspitext.c b/gtk/a11y/gtkatspitext.c index 820635d6d3..8bfcba8489 100644 --- a/gtk/a11y/gtkatspitext.c +++ b/gtk/a11y/gtkatspitext.c @@ -281,6 +281,10 @@ accessible_text_handle_method (GDBusConnection *connection, g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a{ss})", &builder)); } + else if (g_strcmp0 (method_name, "GetOffsetAtPoint") == 0) + { + g_dbus_method_invocation_return_error_literal (invocation, G_DBUS_ERROR, G_DBUS_ERROR_NOT_SUPPORTED, ""); + } else if (g_strcmp0 (method_name, "GetNSelections") == 0) { gsize n_ranges; @@ -707,6 +711,10 @@ label_handle_method (GDBusConnection *connection, g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a{ss})", &builder)); } + else if (g_strcmp0 (method_name, "GetOffsetAtPoint") == 0) + { + g_dbus_method_invocation_return_error_literal (invocation, G_DBUS_ERROR, G_DBUS_ERROR_NOT_SUPPORTED, ""); + } else if (g_strcmp0 (method_name, "GetNSelections") == 0) { int n = 0; @@ -1097,6 +1105,10 @@ inscription_handle_method (GDBusConnection *connection, g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a{ss})", &builder)); } + else if (g_strcmp0 (method_name, "GetOffsetAtPoint") == 0) + { + g_dbus_method_invocation_return_error_literal (invocation, G_DBUS_ERROR, G_DBUS_ERROR_NOT_SUPPORTED, ""); + } else if (g_strcmp0 (method_name, "GetNSelections") == 0) { g_dbus_method_invocation_return_value (invocation, g_variant_new ("(i)", 0)); @@ -1438,6 +1450,10 @@ editable_handle_method (GDBusConnection *connection, g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a{ss})", &builder)); } + else if (g_strcmp0 (method_name, "GetOffsetAtPoint") == 0) + { + g_dbus_method_invocation_return_error_literal (invocation, G_DBUS_ERROR, G_DBUS_ERROR_NOT_SUPPORTED, ""); + } else if (g_strcmp0 (method_name, "GetNSelections") == 0) { int n = 0; @@ -1816,6 +1832,10 @@ text_view_handle_method (GDBusConnection *connection, g_hash_table_unref (attrs); } + else if (g_strcmp0 (method_name, "GetOffsetAtPoint") == 0) + { + g_dbus_method_invocation_return_error_literal (invocation, G_DBUS_ERROR, G_DBUS_ERROR_NOT_SUPPORTED, ""); + } else if (g_strcmp0 (method_name, "GetNSelections") == 0) { int n = 0;