summaryrefslogtreecommitdiff
path: root/atspi/atspi-action.c
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2013-05-14 10:53:45 -0500
committerMike Gorse <mgorse@suse.com>2013-05-15 15:09:00 -0500
commit5b9c1723c5661b9d573b56af3673b488bf2136d7 (patch)
treedf634deee63a85be88e9c17b1bba61f1eb2b3ad6 /atspi/atspi-action.c
parente2661ee0aa213120ef82002518b6f3cf6fe944b5 (diff)
downloadat-spi2-core-5b9c1723c5661b9d573b56af3673b488bf2136d7.tar.gz
Rename various functions to avoid name collisions
Having functions with common suffixes (ie, atspi_text_get_attributes and atspi_document_get_attributes) results in problems for language bindings. Deprecating these functions in favor of functions with new names to avoid these collisions. https://bugzilla.gnome.org/show_bug.cgi?id=700243
Diffstat (limited to 'atspi/atspi-action.c')
-rw-r--r--atspi/atspi-action.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/atspi/atspi-action.c b/atspi/atspi-action.c
index 7e498e99..17b6302a 100644
--- a/atspi/atspi-action.c
+++ b/atspi/atspi-action.c
@@ -52,10 +52,29 @@ atspi_action_get_n_actions (AtspiAction *obj, GError **error)
* object implementing #AtspiAction.
*
* Returns: a UTF-8 string describing the '@i-th' invocable action.
+ *
+ * Deprecated: 2.10: Use atspi_action_get_action_description instead.
+ * Rename to: atspi_action_get_action_description
**/
gchar *
atspi_action_get_description (AtspiAction *obj, int i, GError **error)
{
+ return atspi_action_get_action_description (obj, i, error);
+}
+
+/**
+ * atspi_action_get_action_description:
+ * @obj: a pointer to the #AtspiAction implementor to query.
+ * @i: an integer indicating which action to query.
+ *
+ * Get the description of '@i-th' action invocable on an
+ * object implementing #AtspiAction.
+ *
+ * Returns: a UTF-8 string describing the '@i-th' invocable action.
+ **/
+gchar *
+atspi_action_get_action_description (AtspiAction *obj, int i, GError **error)
+{
dbus_int32_t d_i = i;
char *retval = NULL;
@@ -118,10 +137,29 @@ atspi_action_get_key_binding (AtspiAction *obj, gint i, GError **error)
* object implementing #AtspiAction.
*
* Returns: the non-localized name of the action, as a UTF-8 string.
+ *
+ * Deprecated: 2.10: Use atspi_action_get_action_name instead.
+ * Rename to: atspi_action_get_action_name
**/
gchar *
atspi_action_get_name (AtspiAction *obj, gint i, GError **error)
{
+ return atspi_action_get_action_name (obj, i, error);
+}
+
+/**
+ * atspi_action_get_action_name:
+ * @obj: a pointer to the #AtspiAction implementor to query.
+ * @i: an integer indicating which action to query.
+ *
+ * Get the name of the '@i-th' action invocable on an
+ * object implementing #AtspiAction.
+ *
+ * Returns: the non-localized name of the action, as a UTF-8 string.
+ **/
+gchar *
+atspi_action_get_action_name (AtspiAction *obj, gint i, GError **error)
+{
dbus_int32_t d_i = i;
char *retval = NULL;