From 70a5e66d2faf7471f39ca3ea654b610be8fa0bae Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 2 May 2014 20:59:00 -0400 Subject: [PATCH] a11y tests: Avoid deprecation warnings We can't drop the index-based AtkTable methods unless we change the output format, so just ignore the deprecations for now. --- testsuite/a11y/accessibility-dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuite/a11y/accessibility-dump.c b/testsuite/a11y/accessibility-dump.c index 80b62c2a0d..eb90477ad0 100644 --- a/testsuite/a11y/accessibility-dump.c +++ b/testsuite/a11y/accessibility-dump.c @@ -605,6 +605,7 @@ dump_atk_table (AtkTable *table, g_string_append_printf (string, "%*s", depth + DEPTH_INCREMENT, ""); for (j = 0; j < atk_table_get_n_columns (table); j++) { +G_GNUC_BEGIN_IGNORE_DEPRECATIONS int id = atk_table_get_index_at (table, i, j); obj = atk_object_ref_accessible_child (ATK_OBJECT (table), id); @@ -615,6 +616,7 @@ dump_atk_table (AtkTable *table, atk_table_get_row_at_index (table, id) == i ? "✓" : "⚠", atk_table_get_column_at_index (table, id) == j ? "✓" : "⚠", get_name (obj)); +G_GNUC_END_IGNORE_DEPRECATIONS } g_string_append (string, "\n"); }