when calling the spi_action_interface_new() constructor for them.
This is needed because of an anomaly in how hyperlink actions are
implemented.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@640
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
Bracketed some debug output in
conditionals, to avoid printing it in normal use.
Fixes bug #136660.
+
+ * libspi/hyperlink.c:
+ Don't cast 'object' to ATK_OBJECT when constructing
+ an AtkAction interface for a hyperlink.
+ See discussion in bug #120659.
2004-03-22 Bill Haneman <billh@gnome.org>
*/
if (ATK_IS_ACTION (object))
{
+ /*
+ * NOTE: we don't cast 'object' to ATK_OBJECT in the call to
+ * spi_action_interface_new(), because of the above convention,
+ * even though it means we may be violating the func prototype.
+ * See discussion in bugzilla bug #120659.
+ */
bonobo_object_add_interface (bonobo_object (new_hyperlink),
- BONOBO_OBJECT (spi_action_interface_new (ATK_OBJECT (object))));
+ BONOBO_OBJECT (spi_action_interface_new (object)));
}
return new_hyperlink;
}