From 8c7e13746b8a662d62f0dc54dbbf800ee04e51d8 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 27 Feb 2024 16:35:29 -0800 Subject: [PATCH] a11y/atspi: make TextCaretMoved match GTK 3 / ATK When testing VTE on GTK 3 using ATK, the variant parameter is <0> instead of <''> on the wire. Make that match to increase the chances that tooling will hit the same expectations. --- gtk/a11y/gtkatspicontext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 8e4725bfa8..e754c7c5c5 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -771,7 +771,7 @@ emit_text_selection_changed (GtkAtSpiContext *self, "org.a11y.atspi.Event.Object", "TextCaretMoved", g_variant_new ("(siiva{sv})", - "", cursor_position, 0, g_variant_new_string (""), NULL), + "", cursor_position, 0, g_variant_new_int32 (0), NULL), NULL); else g_dbus_connection_emit_signal (self->connection, @@ -1590,7 +1590,7 @@ gtk_at_spi_context_update_caret_position (GtkATContext *context) "", (int) offset, 0, - g_variant_new_string (""), + g_variant_new_int32 (0), NULL), NULL); }