[at-spi2-core] Fix copying of event any_data



commit 790cb1e9dc42b52319dcae38db294dfa9e5a68f4
Author: Mike Gorse <mgorse novell com>
Date:   Thu Dec 2 06:31:13 2010 -0500

    Fix copying of event any_data

 atspi/atspi-event-listener.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index 58be9af..38d1352 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -682,8 +682,8 @@ atspi_event_copy (AtspiEvent *src)
   dst->source = g_object_ref (src->source);
   dst->detail1 = src->detail1;
   dst->detail2 = src->detail2;
-  dst->any_data.g_type = src->any_data.g_type;
-  g_value_copy (&dst->any_data, &src->any_data);
+  g_value_init (&dst->any_data, G_VALUE_TYPE (&src->any_data));
+  g_value_copy (&src->any_data, &dst->any_data);
   return dst;
 }
 



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