a11y: Send correct object reference for the root accessible
authorMike Gorse <mgorse@suse.com>
Thu, 29 Jul 2021 20:55:58 +0000 (15:55 -0500)
committerMike Gorse <mgorse@suse.com>
Thu, 29 Jul 2021 20:55:58 +0000 (15:55 -0500)
gtk/a11y/gtkatspiroot.c

index c25ddd57173776c715b0f7723af98b50ed9a9f3f..73ceb23f13df2f234ee1124ed4bf7c5ab8c87939 100644 (file)
@@ -776,7 +776,9 @@ gtk_at_spi_root_to_ref (GtkAtSpiRoot *self)
   if (self->desktop_path == NULL)
     return gtk_at_spi_null_ref ();
 
-  return g_variant_new ("(so)", self->desktop_name, self->desktop_path);
+  return g_variant_new ("(so)",
+                        g_dbus_connection_get_unique_name (self->connection),
+                        self->root_path);
 }
 
 const char *