a11y: Add GetOffsetAtPoint

We don't handle it yet.
This commit is contained in:
Matthias Clasen 2024-03-10 10:02:24 -04:00
parent 35d15de3b6
commit cfe3558610

View File

@ -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;