diff options
author | Mike Gorse <mgorse@suse.com> | 2012-07-30 12:02:05 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2012-07-30 12:02:05 -0500 |
commit | 44c0e595b8fe87ffba3d31c572bce5b9a93b5665 (patch) | |
tree | f847019d8d33d0134cb4fbd215b075418bb42ea7 /atspi/atspi-action.c | |
parent | b2873b58e6d2702d3db2477ac2f151098e0cde70 (diff) | |
download | at-spi2-core-44c0e595b8fe87ffba3d31c572bce5b9a93b5665.tar.gz |
Add atspi_action_get_localized_name
https://bugzilla.gnome.org/show_bug.cgi?id=680598
Diffstat (limited to 'atspi/atspi-action.c')
-rw-r--r-- | atspi/atspi-action.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/atspi/atspi-action.c b/atspi/atspi-action.c index 3530b10f..bf1d0239 100644 --- a/atspi/atspi-action.c +++ b/atspi/atspi-action.c @@ -117,7 +117,7 @@ atspi_action_get_key_binding (AtspiAction *obj, gint i, GError **error) * Get the name of the '@i-th' action invocable on an * object implementing #AtspiAction. * - * Returns: the 'event type' name of the action, as a UTF-8 string. + * Returns: the non-localized name of the action, as a UTF-8 string. **/ gchar * atspi_action_get_name (AtspiAction *obj, gint i, GError **error) @@ -133,6 +133,30 @@ atspi_action_get_name (AtspiAction *obj, gint i, GError **error) } /** + * atspi_action_get_localized_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 name of the action, as a UTF-8 string. + **/ +gchar * +atspi_action_get_localized_name (AtspiAction *obj, gint i, GError **error) +{ + dbus_int32_t d_i = i; + char *retval = NULL; + + g_return_val_if_fail (obj != NULL, NULL); + + _atspi_dbus_call (obj, atspi_interface_action, "GetLocalizedName", error, + "i=>s", d_i, &retval); + + return retval; +} + +/** * atspi_action_do_action: * @obj: a pointer to the #AtspiAction to query. * @i: an integer specifying which action to invoke. |