[gtk+] tests: Don't emit a message for every unnamed object
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Don't emit a message for every unnamed object
- Date: Tue, 5 Jul 2011 20:24:28 +0000 (UTC)
commit d346be96c2bd8cabb5c28fd07174f51fbc006a82
Author: Benjamin Otte <otte redhat com>
Date: Wed Jun 22 04:20:36 2011 +0200
tests: Don't emit a message for every unnamed object
tests/a11y/accessibility-dump.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/a11y/accessibility-dump.c b/tests/a11y/accessibility-dump.c
index 3f21523..601ddfb 100644
--- a/tests/a11y/accessibility-dump.c
+++ b/tests/a11y/accessibility-dump.c
@@ -131,9 +131,8 @@ get_name (AtkObject *accessible)
if (name == NULL)
{
- g_test_message ("get_name called on a unnamed %s\n", g_type_name_from_instance ((GTypeInstance *)accessible));
/* Generate a unique, repeatable name */
- name = g_strdup_printf ("unnamed-%s-%d", g_type_name_from_instance ((GTypeInstance*)accessible), unnamed_object_count++);
+ name = g_strdup_printf ("unnamed-%s-%d", G_OBJECT_TYPE_NAME (accessible), unnamed_object_count++);
}
g_object_set_data_full (G_OBJECT (accessible), "gtk-accessibility-dump-name", name, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]