[at-spi2-core] Check whether an accessible object implements the 'Hyperlink' interface.
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Check whether an accessible object implements the 'Hyperlink' interface.
- Date: Thu, 20 Jan 2011 18:24:05 +0000 (UTC)
commit 264151e0fa8a2465b46ed920040d908934378c83
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Thu Jan 20 18:26:30 2011 +0100
Check whether an accessible object implements the 'Hyperlink' interface.
atspi/atspi-accessible.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index 4698ffe..78bdb86 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -883,6 +883,22 @@ atspi_accessible_is_hypertext (AtspiAccessible *obj)
}
/**
+ * atspi_accessible_is_hyperlink:
+ * @obj: a pointer to the #AtspiAccessible instance to query.
+ *
+ * Query whether the specified #AtspiAccessible implements #AtspiHyperlink.
+ *
+ * Returns: #TRUE if @obj implements the #AtspiHypertext interface,
+ * #FALSE otherwise.
+ **/
+gboolean
+atspi_accessible_is_hyperlink (AtspiAccessible *obj)
+{
+ return _atspi_accessible_is_a (obj,
+ atspi_interface_hyperlink);
+}
+
+/**
* atspi_accessible_is_image:
* @obj: a pointer to the #AtspiAccessible instance to query.
*
@@ -1263,6 +1279,8 @@ atspi_accessible_get_interfaces (AtspiAccessible *obj)
append_const_val (ret, "EditableText");
if (atspi_accessible_is_hypertext (obj))
append_const_val (ret, "Hypertext");
+ if (atspi_accessible_is_hyperlink (obj))
+ append_const_val (ret, "Hyperlink");
if (atspi_accessible_is_image (obj))
append_const_val (ret, "Image");
if (atspi_accessible_is_selection (obj))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]