summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-11-08 15:22:02 -0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-11-08 18:08:57 +0000
commitcbf6e74915548b20228cf5f26a53c20cd3faa304 (patch)
tree2cda28a2e474d912ca2daed61ab1490fb33b9a4f
parentb5c4437287bbe4ba0ee20d3d42d98930c2e71f23 (diff)
downloadmutter-cbf6e74915548b20228cf5f26a53c20cd3faa304.tar.gz
tests: Remove deprecated ATK functions
-rw-r--r--clutter/tests/accessibility/cally-atktext-example.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/clutter/tests/accessibility/cally-atktext-example.c b/clutter/tests/accessibility/cally-atktext-example.c
index f7218ce60..634a9a74f 100644
--- a/clutter/tests/accessibility/cally-atktext-example.c
+++ b/clutter/tests/accessibility/cally-atktext-example.c
@@ -66,24 +66,11 @@ test_atk_text (ClutterActor *actor)
g_free (text); text = NULL;
g_free (buf); buf = NULL;
- text = atk_text_get_text_before_offset (cally_text,
- 5, ATK_TEXT_BOUNDARY_WORD_END,
- &start, &end);
- g_print ("atk_text_get_text_before_offset: %s, %i, %i\n",
- text, start, end);
- g_free (text); text = NULL;
-
- text = atk_text_get_text_at_offset (cally_text,
- 5, ATK_TEXT_BOUNDARY_WORD_END,
- &start, &end);
- g_print ("atk_text_get_text_at_offset: %s, %i, %i\n",
- text, start, end);
- g_free (text); text = NULL;
-
- text = atk_text_get_text_after_offset (cally_text,
- 5, ATK_TEXT_BOUNDARY_WORD_END,
- &start, &end);
- g_print ("atk_text_get_text_after_offset: %s, %i, %i\n",
+ text = atk_text_get_string_at_offset (cally_text,
+ 5,
+ ATK_TEXT_GRANULARITY_WORD,
+ &start, &end);
+ g_print ("atk_text_get_string_at_offset: %s, %i, %i\n",
text, start, end);
g_free (text); text = NULL;