[gtk+] a11y tests: Avoid deprecation warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y tests: Avoid deprecation warnings
- Date: Sat, 3 May 2014 00:59:55 +0000 (UTC)
commit 70a5e66d2faf7471f39ca3ea654b610be8fa0bae
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 2 20:59:00 2014 -0400
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/a11y/accessibility-dump.c b/testsuite/a11y/accessibility-dump.c
index 80b62c2..eb90477 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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]