From 296f0844df3519ae9f7a521818f1d97f5f9c9cea Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 22 Jul 2020 13:48:00 +0100 Subject: [PATCH] Fix build with debugging notes disabled --- gtk/gtktestatcontext.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/gtk/gtktestatcontext.c b/gtk/gtktestatcontext.c index 61dc5780a3..1bae6625d8 100644 --- a/gtk/gtktestatcontext.c +++ b/gtk/gtktestatcontext.c @@ -49,27 +49,27 @@ gtk_test_at_context_state_change (GtkATContext *self, GtkAccessibleAttributeSet *properties, GtkAccessibleAttributeSet *relations) { - GtkAccessible *accessible = gtk_at_context_get_accessible (self); - GtkAccessibleRole role = gtk_at_context_get_accessible_role (self); char *states_str = gtk_accessible_attribute_set_to_string (states); char *properties_str = gtk_accessible_attribute_set_to_string (properties); char *relations_str = gtk_accessible_attribute_set_to_string (relations); GTK_NOTE(A11Y, { - GEnumClass *class = g_type_class_ref (GTK_TYPE_ACCESSIBLE_ROLE); - GEnumValue *value = g_enum_get_value (class, role); - g_print ("*** Accessible state changed for accessible “%s”, with role “%s” (%d):\n" - "*** states = %s\n" - "*** properties = %s\n" - "*** relations = %s\n", - G_OBJECT_TYPE_NAME (accessible), - value->value_nick, - role, - states_str, - properties_str, - relations_str); - g_type_class_unref (class); + GtkAccessibleRole role = gtk_at_context_get_accessible_role (self); + GtkAccessible *accessible = gtk_at_context_get_accessible (self); + GEnumClass *class = g_type_class_ref (GTK_TYPE_ACCESSIBLE_ROLE); + GEnumValue *value = g_enum_get_value (class, role); + g_print ("*** Accessible state changed for accessible “%s”, with role “%s” (%d):\n" + "*** states = %s\n" + "*** properties = %s\n" + "*** relations = %s\n", + G_OBJECT_TYPE_NAME (accessible), + value->value_nick, + role, + states_str, + properties_str, + relations_str); + g_type_class_unref (class); }); g_free (states_str);