diff options
author | Alejandro Piñeiro <apinheiro@igalia.com> | 2013-06-17 16:11:02 +0200 |
---|---|---|
committer | Alejandro Piñeiro <apinheiro@igalia.com> | 2013-06-17 19:47:13 +0200 |
commit | 284d1abc2436074e6dc942fefdd1f37677ce1f0b (patch) | |
tree | 8517543ddf55ca9033a7f8c6606f363a0574acc4 | |
parent | b1f70e81ef1d7287dcb2cafa9a115ff5752ece55 (diff) | |
download | atk-284d1abc2436074e6dc942fefdd1f37677ce1f0b.tar.gz |
text: Deprecate atk_text_get_text_{before,after}_offset()
https://bugzilla.gnome.org/show_bug.cgi?id=697968
-rwxr-xr-x | atk/atktext.c | 6 | ||||
-rwxr-xr-x | atk/atktext.h | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/atk/atktext.c b/atk/atktext.c index edf0be7..33f4c07 100755 --- a/atk/atktext.c +++ b/atk/atktext.c @@ -337,6 +337,9 @@ atk_text_get_character_at_offset (AtkText *text, * If the boundary_type is ATK_TEXT_BOUNDARY_LINE_END the returned string * is from the line end at or after the offset to the next line end. * + * Deprecated: This method is deprecated since ATK version + * 2.9.3. Please use atk_text_get_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. **/ @@ -512,6 +515,9 @@ atk_text_get_text_at_offset (AtkText *text, * is from the line end before the line end before the offset to the * line end before the offset. * + * Deprecated: This method is deprecated since ATK version + * 2.9.3. Please use atk_text_get_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 5085438..24a5526 100755 --- a/atk/atktext.h +++ b/atk/atktext.h @@ -192,6 +192,13 @@ typedef enum { ATK_TEXT_CLIP_BOTH } AtkTextClipType; +/** + * AtkTextIface: + * @get_text_after_offset: Gets specified text. This virtual function + * is deprecated and it should not be overridden. + * @get_text_before_offset: Gets specified text. This virtual function + * is deprecated and it should not be overridden. + */ struct _AtkTextIface { GTypeInterface parent; @@ -292,6 +299,7 @@ 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) gchar* atk_text_get_text_after_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, @@ -302,6 +310,7 @@ gchar* atk_text_get_text_at_offset (AtkText *tex AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset); +G_DEPRECATED_FOR(atk_text_get_text_at_offset) gchar* atk_text_get_text_before_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, |