* cspi/bonobo/cspi-bonobo-listener.c:
(cspi_event):
Don't call cspi_oject_new() because this is creating a new Accessible
every single time that an event is fired. This causes ATs like at-poke
to nolonger recognise the source of the event and thus ignore it.
Re-use the object from the cache, ref it and then unref it after the
listeners have been called.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@330
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2002-08-12 Darren Kenny <darren.kenny@sun.com>
+
+ * cspi/bonobo/cspi-bonobo-listener.c:
+ (cspi_event):
+ Don't call cspi_oject_new() because this is creating a new Accessible
+ every single time that an event is fired. This causes ATs like at-poke
+ to nolonger recognise the source of the event and thus ignore it.
+ Re-use the object from the cache, ref it and then unref it after the
+ listeners have been called.
+
2002-08-06 Darren Kenny <darren.kenny@sun.com>
* test/event-listener-test.c:
GList *l;
CSpiEventListener *clistener = (CSpiEventListener *) listener;
AccessibleEvent aevent;
- Accessible *source = cspi_object_new (event->source);
+ Accessible *source = cspi_object_add (cspi_dup_ref(event->source));
aevent.type = event->type;
aevent.source = source;
eh->cb.event (&aevent, eh->user_data);
}
+
+ cspi_object_unref( source );
}
static void