From: Mike Gorse Date: Thu, 26 Jun 2008 13:11:02 +0000 (-0400) Subject: Remove explicit references to org.freedesktop.atspi.registry and SPI_DBUS_NAME_REGIST... X-Git-Tag: AT_SPI2_CORE_0_1_3~192 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=411721463441cd0c02b12ca0825e2040706a97a5;p=platform%2Fupstream%2Fat-spi2-core.git Remove explicit references to org.freedesktop.atspi.registry and SPI_DBUS_NAME_REGISTRY in favor of spi_bus_registry --- diff --git a/cspi/spi_main.c b/cspi/spi_main.c index 33ff5a7..36d18a0 100644 --- a/cspi/spi_main.c +++ b/cspi/spi_main.c @@ -185,7 +185,7 @@ cspi_object_ref (Accessible *accessible) g_hash_table_insert (live_refs, accessible, accessible); } -#define APP_IS_REGISTRY(app) (!strcmp (app->bus_name, SPI_DBUS_NAME_REGISTRY)) +#define APP_IS_REGISTRY(app) (!strcmp (app->bus_name, spi_bus_registry)) static void cspi_object_unref_internal (Accessible *accessible, gboolean defunct) @@ -589,7 +589,7 @@ cspi_dbus_handle_add_application (DBusConnection *bus, DBusMessage *message, voi dbus_error_free (&error); return DBUS_HANDLER_RESULT_HANDLED; } - a = cspi_ref_accessible ("org.freedesktop.atspi.registry", dbus_message_get_path(message)); + a = cspi_ref_accessible (spi_bus_registry, dbus_message_get_path(message)); if (add_app_to_desktop (a, bus_name)) { send_children_changed (a, g_list_last (a->children)->data, TRUE); @@ -613,7 +613,7 @@ cspi_dbus_handle_remove_application (DBusConnection *bus, DBusMessage *message, dbus_error_free (&error); return DBUS_HANDLER_RESULT_HANDLED; } - a = cspi_ref_accessible ("org.freedesktop.atspi.registry", dbus_message_get_path(message)); + a = cspi_ref_accessible (spi_bus_registry, dbus_message_get_path(message)); remove_app_from_desktop (a, bus_name); cspi_object_unref (a); return DBUS_HANDLER_RESULT_HANDLED; @@ -693,7 +693,7 @@ SPI_init (void) dbus_error_init (&error); dbus_bus_add_match (bus, match, &error); g_free (match); - match = g_strdup_printf ("type='signal',sender='%s'", SPI_DBUS_NAME_REGISTRY); + match = g_strdup_printf ("type='signal',sender='%s'", spi_bus_registry); dbus_bus_add_match (bus, match, &error); g_free (match); return 0;