Patch from Ginn Chen, assign detail1 in children-changed
so that the child object can be assigned to the Any when the
at-spi event is emitted. Bug #350552.
+
+ * libspi/application.c:
+ (spi_application_finalize): Remove g_print debug output.
+ Bug #350958.
2006-08-21 Bill Haneman <bill.haneman@sun.com>
+What's new in at-spi-1.7.11:
+
+* Docs fixes.
+
+* Fixed getAttributes APIs.
+
+* Export Hyperlink interface for AtkHyperlinkImpl peers.
+
+* Aggregate Document interface.
+
What's new in at-spi-1.7.10:
* New method Selection::deselectChild. RFE #326535.
README
-at-spi version 1.7.10
+at-spi version 1.7.11
*** Welcome to the Gnome Accessibility Project! ***
AT_SPI_MAJOR_VERSION=1
AT_SPI_MINOR_VERSION=7
-AT_SPI_MICRO_VERSION=10
+AT_SPI_MICRO_VERSION=11
AT_SPI_INTERFACE_AGE=0
AT_SPI_BINARY_AGE=0
AT_SPI_VERSION="$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION.$AT_SPI_MICRO_VERSION"
bonobo_object_add_interface (bonobo_object (retval),
BONOBO_OBJECT (spi_document_interface_new (o)));
}
+ if (ATK_IS_HYPERLINK_IMPL (o))
+ {
+ /* !!! the cast below is used instead of the ATK_HYPERLINK macro, since
+ the object 'o' is not really a hyperlink, but is in fact an AtkHyperlinkImpl.
+ Ouch. This works since it gets cast back to GObject, but it's nasty and needs
+ to be cleaned up.
+ */
+ bonobo_object_add_interface (bonobo_object (retval),
+ BONOBO_OBJECT (spi_hyperlink_new ((AtkHyperlink*)o)));
+ }
return retval;
}
g_list_free (application->toolkit_listeners);
application->toolkit_listeners = NULL;
- g_print ("application finalize called\n");
(G_OBJECT_CLASS (spi_application_parent_class))->finalize (object);
}
}
-static CORBA_string
+static Accessibility_AttributeSet*
impl_getAttributes (PortableServer_Servant servant,
CORBA_Environment *ev){
gint n_attributes = 0;
gint i;
- g_return_val_if_fail (document != NULL, CORBA_string_dup (""));
+ g_return_val_if_fail (document != NULL, NULL);
attributes = atk_document_get_attributes (document);
* it will be cast back to a G_OBJECT inside spi_action_interface_new
* before use, so this is OK though very ropey coding style.
*/
- bonobo_object_add_interface (bonobo_object (new_hyperlink),
- BONOBO_OBJECT (spi_action_interface_new ((AtkObject *) object)));
+
+ /* Don't aggregate action twice... if this is from AtkHyperlinkImpl */
+ if (!bonobo_object_query_interface (bonobo_object (new_hyperlink), "IDL:Accessibility/Action:1.0",
+ NULL))
+
+ bonobo_object_add_interface (bonobo_object (new_hyperlink),
+ BONOBO_OBJECT (spi_action_interface_new ((AtkObject *) object)));
}
return new_hyperlink;
}
SpiBase *object = SPI_BASE (bonobo_object_from_servant (servant));
g_return_val_if_fail (object != NULL, NULL);
- g_return_val_if_fail (ATK_IS_HYPERLINK(object->gobj), NULL);
- return ATK_HYPERLINK (object->gobj);
+ if (ATK_IS_HYPERLINK(object->gobj))
+ {
+ return ATK_HYPERLINK (object->gobj);
+ }
+ else if (ATK_IS_HYPERLINK_IMPL(object->gobj))
+ {
+ return atk_hyperlink_impl_get_hyperlink (ATK_HYPERLINK_IMPL (object->gobj));
+ }
+ else
+ return NULL;
}
#include <libspi/base.h>
#include <atk/atkhyperlink.h>
+#include <atk/atkhyperlinkimpl.h>
G_BEGIN_DECLS