diff options
author | Patryk Kaczmarek <patryk.k@samsung.com> | 2015-09-28 14:23:15 +0200 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2015-10-12 14:20:01 -0500 |
commit | 8786849ce6e9914383aa766ff9ce7e00f5b2178d (patch) | |
tree | df76f1dec43a381b6b64eb6903ce32b93b638f00 /atspi/atspi-text.c | |
parent | 45432a51a027ae7e1ee8fa2643105622e5f23ed5 (diff) | |
download | at-spi2-core-8786849ce6e9914383aa766ff9ce7e00f5b2178d.tar.gz |
Fixed atspi_text_ functions
* atspi_text_get_text_attribute_value
Fixed dbus signature in _atspi_dbus_call function
and add missing argument for string.
* atspi_text_get_default_attributes
Receiving return value by reference from hash table
https://bugzilla.gnome.org/show_bug.cgi?id=755731
Diffstat (limited to 'atspi/atspi-text.c')
-rw-r--r-- | atspi/atspi-text.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/atspi/atspi-text.c b/atspi/atspi-text.c index 6639fd42..1e887d39 100644 --- a/atspi/atspi-text.c +++ b/atspi/atspi-text.c @@ -319,10 +319,14 @@ atspi_text_get_text_attribute_value (AtspiText *obj, GError **error) { gchar *retval = NULL; + dbus_int32_t d_i = offset; g_return_val_if_fail (obj != NULL, NULL); - _atspi_dbus_call (obj, atspi_interface_text, "GetAttributeValue", error, "i=>s", offset, &retval); + _atspi_dbus_call (obj, atspi_interface_text, "GetAttributeValue", error, "is=>s", d_i, (const gchar *)attribute_value, &retval); + + if (!retval) + retval = g_strdup (""); return retval; } |