at-spi r1047 - in trunk: . atk-bridge
- From: liyuan svn gnome org
- To: svn-commits-list gnome org
- Subject: at-spi r1047 - in trunk: . atk-bridge
- Date: Mon, 25 Aug 2008 03:15:53 +0000 (UTC)
Author: liyuan
Date: Mon Aug 25 03:15:53 2008
New Revision: 1047
URL: http://svn.gnome.org/viewvc/at-spi?rev=1047&view=rev
Log:
2008-08-25 Li Yuan <li yuan sun com>
* atk-bridge/bridge.c: (spi_atk_bridge_signal_listener):
Bug #350552. In children-changed, get child at detail 2 first.
Patch from Ginn Chen.
Modified:
trunk/ChangeLog
trunk/atk-bridge/bridge.c
Modified: trunk/atk-bridge/bridge.c
==============================================================================
--- trunk/atk-bridge/bridge.c (original)
+++ trunk/atk-bridge/bridge.c Mon Aug 25 03:15:53 2008
@@ -1156,19 +1156,28 @@
else if ((signal_query.signal_id == atk_signal_children_changed) && gobject)
{
detail1 = g_value_get_uint (param_values + 1);
- ao = atk_object_ref_accessible_child (ATK_OBJECT (gobject),
- detail1);
- if (ao)
+ gpointer child = g_value_get_pointer (param_values + 2);
+ if (ATK_IS_OBJECT (child))
+ {
+ ao = ATK_OBJECT (child);
+ g_object_ref (ao);
+ }
+ else
+ {
+ ao = atk_object_ref_accessible_child (ATK_OBJECT (gobject),
+ detail1);
+ }
+ if (ao)
{
s_ao = spi_accessible_new (ao);
c_obj = BONOBO_OBJREF (s_ao);
spi_atk_bridge_init_object (&any, ATK_OBJECT (gobject), &c_obj);
- g_object_unref (ao);
- }
+ g_object_unref (ao);
+ }
else
- {
- spi_atk_bridge_init_nil (&any, ATK_OBJECT (gobject));
- }
+ {
+ spi_atk_bridge_init_nil (&any, ATK_OBJECT (gobject));
+ }
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]