[at-spi2-atk] Move the application argument to the end of the event structure to allow matching on the minor strin



commit f324159af218cf71fd17454059bd509149ca7294
Author: Mark Doffman <mark doffman codethink co uk>
Date:   Wed Feb 3 17:11:35 2010 -0800

    Move the application argument to the end of the event structure
    to allow matching on the minor string.

 atk-adaptor/event.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/atk-adaptor/event.c b/atk-adaptor/event.c
index 23133cb..7137056 100644
--- a/atk-adaptor/event.c
+++ b/atk-adaptor/event.c
@@ -325,12 +325,11 @@ emit_event (AtkObject  *obj,
 
   dbus_message_iter_init_append(sig, &iter);
 
-  spi_object_append_reference (&iter, spi_global_app_data->root);
   dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &minor);
   dbus_message_iter_append_basic(&iter, DBUS_TYPE_INT32, &detail1);
   dbus_message_iter_append_basic(&iter, DBUS_TYPE_INT32, &detail2);
-
   append_variant (&iter, type, val);
+  spi_object_append_reference (&iter, spi_global_app_data->root);
 
   dbus_connection_send(bus, sig, NULL);
   dbus_message_unref(sig);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]