[gtk/a11y/atspi] Cosmetics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/a11y/atspi] Cosmetics
- Date: Wed, 14 Oct 2020 01:28:20 +0000 (UTC)
commit 32d8db103a5457b9cf5720780c201f00c2f9348e
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 13 18:58:25 2020 -0400
Cosmetics
Avoid typo-prone repetition of the full interface names.
We have them in the introspection data already.
gtk/a11y/gtkatspicontext.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c
index b6daaf13f8..96d546f78e 100644
--- a/gtk/a11y/gtkatspicontext.c
+++ b/gtk/a11y/gtkatspicontext.c
@@ -603,7 +603,7 @@ gtk_at_spi_context_register_object (GtkAtSpiContext *self)
GVariantBuilder interfaces = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE_STRING_ARRAY);
const GDBusInterfaceVTable *vtable;
- g_variant_builder_add (&interfaces, "s", "org.a11y.atspi.Accessible");
+ g_variant_builder_add (&interfaces, "s", atspi_accessible_interface.name);
self->registration_ids[self->n_registered_objects] =
g_dbus_connection_register_object (self->connection,
self->context_path,
@@ -617,7 +617,7 @@ gtk_at_spi_context_register_object (GtkAtSpiContext *self)
vtable = gtk_atspi_get_text_vtable (widget);
if (vtable)
{
- g_variant_builder_add (&interfaces, "s", "org.a11y.atspi.Text");
+ g_variant_builder_add (&interfaces, "s", atspi_text_interface.name);
self->registration_ids[self->n_registered_objects] =
g_dbus_connection_register_object (self->connection,
self->context_path,
@@ -632,7 +632,7 @@ gtk_at_spi_context_register_object (GtkAtSpiContext *self)
vtable = gtk_atspi_get_editable_text_vtable (widget);
if (vtable)
{
- g_variant_builder_add (&interfaces, "s", "org.a11y.atspi.EditableText");
+ g_variant_builder_add (&interfaces, "s", atspi_editable_text_interface.name);
self->registration_ids[self->n_registered_objects] =
g_dbus_connection_register_object (self->connection,
self->context_path,
@@ -646,7 +646,7 @@ gtk_at_spi_context_register_object (GtkAtSpiContext *self)
vtable = gtk_atspi_get_value_vtable (widget);
if (vtable)
{
- g_variant_builder_add (&interfaces, "s", "org.a11y.atspi.Value");
+ g_variant_builder_add (&interfaces, "s", atspi_value_interface.name);
self->registration_ids[self->n_registered_objects] =
g_dbus_connection_register_object (self->connection,
self->context_path,
@@ -661,7 +661,7 @@ gtk_at_spi_context_register_object (GtkAtSpiContext *self)
vtable = gtk_atspi_get_selection_vtable (widget);
if (vtable)
{
- g_variant_builder_add (&interfaces, "s", "org.a11y.atspi.Selection");
+ g_variant_builder_add (&interfaces, "s", atspi_selection_interface.name);
self->registration_ids[self->n_registered_objects] =
g_dbus_connection_register_object (self->connection,
self->context_path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]