From: Mike Gorse Date: Sat, 13 Dec 2008 21:03:08 +0000 (-0600) Subject: 2008-12-13 Mike Gorse X-Git-Tag: AT_SPI2_ATK_2_12_0~554^2~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=89f5852d0972296abdc57651dc53ef3d6db7f856 2008-12-13 Mike Gorse * cspi/spi-main.c: Don't free stateset (already freed in subroutine) * cspi/spi-main.c: Add states to CacheSignalType. * cspi/spi-main.c: Listen for signals on registry interface. * cspi/spi-main.c: Recognize collection interface. --- diff --git a/cspi/spi-main.c b/cspi/spi-main.c index 3485a5a..f5ee42b 100644 --- a/cspi/spi-main.c +++ b/cspi/spi-main.c @@ -93,6 +93,7 @@ static const char *interfaces[] = SPI_DBUS_INTERFACE_ACCESSIBLE, SPI_DBUS_INTERFACE_ACTION, SPI_DBUS_INTERFACE_APPLICATION, + SPI_DBUS_INTERFACE_COLLECTION, SPI_DBUS_INTERFACE_COMPONENT, SPI_DBUS_INTERFACE_DOCUMENT, SPI_DBUS_INTERFACE_EDITABLE_TEXT, @@ -377,7 +378,7 @@ handle_additions (CSpiApplication*app, GArray *additions) a->states = spi_state_set_cache_new (ca->state_bitflags); g_array_free (ca->interfaces, TRUE); g_array_free (ca->children, TRUE); - g_array_free (ca->state_bitflags, TRUE); + /* spi_state_set_cache_new frees state_bitflags */ /* This is a bit of a hack since ref_accessible sets ref_count to 2 * for a new object, one of the refs being for the cache */ cspi_object_unref (a); @@ -556,7 +557,7 @@ typedef struct GArray *removals; } CacheSignalData; -static const char *cacheSignalType = "a(ooaoassus)ao"; +static const char *cacheSignalType = "a(ooaoassusau)ao"; static DBusHandlerResult cspi_dbus_handle_update_tree (DBusConnection *bus, DBusMessage *message, void *user_data) @@ -643,7 +644,7 @@ cspi_dbus_filter (DBusConnection *bus, DBusMessage *message, void *data) { return cspi_dbus_handle_update_tree (bus, message, data); } - if (dbus_message_is_signal (message, spi_interface_tree, "registerApplication")) + if (dbus_message_is_signal (message, spi_interface_registry, "registerApplication")) { return cspi_dbus_handle_register_application (bus, message, data); } @@ -693,7 +694,7 @@ SPI_init (void) dbus_error_init (&error); dbus_bus_add_match (bus, match, &error); g_free (match); - match = g_strdup_printf ("type='signal',interface='%s'", spi_interface_tree); + match = g_strdup_printf ("type='signal',interface='%s'", spi_interface_registry); dbus_bus_add_match (bus, match, &error); g_free (match); return 0; diff --git a/spi-common/spi-stateset.c b/spi-common/spi-stateset.c index 35fbcf2..4acf203 100644 --- a/spi-common/spi-stateset.c +++ b/spi-common/spi-stateset.c @@ -169,7 +169,6 @@ spi_state_set_cache_from_sequence (const GArray *seq) set = atk_state_set_new (); atk_state_set_add_states (set, states, seq->len); - g_free (states); g_array_free (seq, TRUE); return set; }