From: Mike Gorse Date: Tue, 12 May 2009 04:36:42 +0000 (-0500) Subject: 2009-05-11 Mike Gorse X-Git-Tag: AT_SPI2_CORE_0_1_3~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5fac91fa233e7a07d2e557812878dd626f0721f;p=platform%2Fupstream%2Fat-spi2-core.git 2009-05-11 Mike Gorse cspi: Fix reading of updateAccessible, and create match rules for it and removeAccessible. --- diff --git a/cspi/spi-main.c b/cspi/spi-main.c index 9906123..246bd33 100644 --- a/cspi/spi-main.c +++ b/cspi/spi-main.c @@ -562,7 +562,7 @@ cspi_ref_related_accessible (Accessible *obj, const char *path) return ref_accessible (obj->app, path); } -static const char *cacheSignalType = "ooaoassusau"; +static const char *cacheSignalType = "(ooaoassusau)"; static DBusHandlerResult cspi_dbus_handle_update_accessible (DBusConnection *bus, DBusMessage *message, void *user_data) @@ -709,7 +709,11 @@ SPI_init (void) dbus_bus_register (bus, &error); dbus_connection_setup_with_g_main(bus, g_main_context_default()); dbus_connection_add_filter (bus, cspi_dbus_filter, NULL, NULL); - match = g_strdup_printf ("type='signal',interface='%s',member='updateTree'", spi_interface_tree); + match = g_strdup_printf ("type='signal',interface='%s',member='updateAccessible'", spi_interface_tree); + dbus_error_init (&error); + dbus_bus_add_match (bus, match, &error); + g_free (match); + match = g_strdup_printf ("type='signal',interface='%s',member='removeAccessible'", spi_interface_tree); dbus_error_init (&error); dbus_bus_add_match (bus, match, &error); g_free (match);