From 6580186f3017ff3fa8488582b43ebd2c90b88d4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20Pi=C3=B1eiro?= Date: Mon, 19 Aug 2013 16:41:50 +0200 Subject: [PATCH] atktext: Fixing some typos on atk_text_get_text_at_offset deprecation Also updated atk_text_get_text_[before/after]_offset deprecation and documentation. --- atk/atktext.c | 7 +++++-- atk/atktext.h | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/atk/atktext.c b/atk/atktext.c index 8e6b9c3..d55f5de 100755 --- a/atk/atktext.c +++ b/atk/atktext.c @@ -378,7 +378,7 @@ atk_text_get_character_at_offset (AtkText *text, * Gets the specified text. * * Deprecated: This method is deprecated since ATK version - * 2.9.3. Please use atk_text_get_at_offset() instead. + * 2.9.3. Please use atk_text_get_string_at_offset() instead. * * Returns: a newly allocated string containing the text after @offset bounded * by the specified @boundary_type. Use g_free() to free the returned string. @@ -450,6 +450,9 @@ atk_text_get_text_after_offset (AtkText *text, * string is from the line start at or before the offset to the line * start after the offset. * + * Deprecated: This method is deprecated since ATK version + * 2.9.4. Please use atk_text_get_string_at_offset() instead. + * * Returns: a newly allocated string containing the text at @offset bounded by * the specified @boundary_type. Use g_free() to free the returned string. **/ @@ -495,7 +498,7 @@ atk_text_get_text_at_offset (AtkText *text, * Gets the specified text. * * Deprecated: This method is deprecated since ATK version - * 2.9.3. Please use atk_text_get_at_offset() instead. + * 2.9.3. Please use atk_text_get_string_at_offset() instead. * * Returns: a newly allocated string containing the text before @offset bounded * by the specified @boundary_type. Use g_free() to free the returned string. diff --git a/atk/atktext.h b/atk/atktext.h index 96bd28b..dd73200 100755 --- a/atk/atktext.h +++ b/atk/atktext.h @@ -348,19 +348,19 @@ gchar* atk_text_get_text (AtkText *tex gint end_offset); gunichar atk_text_get_character_at_offset (AtkText *text, gint offset); -G_DEPRECATED_FOR(atk_text_get_text_at_offset) +G_DEPRECATED_FOR(atk_text_get_string_at_offset) gchar* atk_text_get_text_after_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset); -G_DEPRECATED_FOR(atk_text_get_text_at_offset) +G_DEPRECATED_FOR(atk_text_get_string_at_offset) gchar* atk_text_get_text_at_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset); -G_DEPRECATED_FOR(atk_text_get_text_at_offset) +G_DEPRECATED_FOR(atk_text_get_string_at_offset) gchar* atk_text_get_text_before_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, -- 2.7.4