diff options
author | Bill Haneman <billh@src.gnome.org> | 2002-11-14 17:50:57 +0000 |
---|---|---|
committer | Bill Haneman <billh@src.gnome.org> | 2002-11-14 17:50:57 +0000 |
commit | 67c8aa711b95f37794d2e288cd6b76546af95aa6 (patch) | |
tree | e020b22e0cdd78d3ecc412dec853a1362591c2f2 /atk/atkhyperlink.c | |
parent | e4eec41aff125c93aa3a488bb514c9df82aed6b4 (diff) | |
download | at-spi2-core-67c8aa711b95f37794d2e288cd6b76546af95aa6.tar.gz |
Revved to 1.1.2, added ATK_RELATION_EMBEDS/EMBEDDED_BY,
atk_hyperlink_is_inline.
Diffstat (limited to 'atk/atkhyperlink.c')
-rwxr-xr-x | atk/atkhyperlink.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/atk/atkhyperlink.c b/atk/atkhyperlink.c index 569a33fb..90f4ff47 100755 --- a/atk/atkhyperlink.c +++ b/atk/atkhyperlink.c @@ -199,6 +199,32 @@ atk_hyperlink_is_valid (AtkHyperlink *link) } /** + * atk_hyperlink_is_inline: + * @link_: an #AtkHyperlink + * + * Indicates whether the link currently displays some or all of its + * content inline. Ordinary HTML links will usually return + * %FALSE, but an inline <src> HTML element will return + * %TRUE. +a * + * Returns: whether or not this link displays its content inline. + * + **/ +gboolean +atk_hyperlink_is_inline (AtkHyperlink *link) +{ + AtkHyperlinkClass *klass; + + g_return_val_if_fail (ATK_IS_HYPERLINK (link), FALSE); + + klass = ATK_HYPERLINK_GET_CLASS (link); + if (klass->link_state) + return (klass->link_state (link) & ATK_HYPERLINK_IS_INLINE); + else + return FALSE; +} + +/** * atk_hyperlink_get_n_anchors: * @link_: an #AtkHyperlink * |