mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
Merge branch 'a11y-crash' into 'master'
A11y crash Closes #3014 See merge request GNOME/gtk!2364
This commit is contained in:
commit
a42738729b
@ -4195,7 +4195,10 @@ gtk_scrolled_window_set_child (GtkScrolledWindow *scrolled_window,
|
|||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
list = g_list_append (NULL, priv->child);
|
if (priv->child)
|
||||||
|
list = g_list_append (NULL, priv->child);
|
||||||
|
else
|
||||||
|
list = NULL;
|
||||||
gtk_accessible_update_relation (GTK_ACCESSIBLE (priv->hscrollbar),
|
gtk_accessible_update_relation (GTK_ACCESSIBLE (priv->hscrollbar),
|
||||||
GTK_ACCESSIBLE_RELATION_CONTROLS, list,
|
GTK_ACCESSIBLE_RELATION_CONTROLS, list,
|
||||||
-1);
|
-1);
|
||||||
|
@ -49,16 +49,16 @@ gtk_test_at_context_state_change (GtkATContext *self,
|
|||||||
GtkAccessibleAttributeSet *properties,
|
GtkAccessibleAttributeSet *properties,
|
||||||
GtkAccessibleAttributeSet *relations)
|
GtkAccessibleAttributeSet *relations)
|
||||||
{
|
{
|
||||||
char *states_str = gtk_accessible_attribute_set_to_string (states);
|
if (GTK_DEBUG_CHECK (A11Y))
|
||||||
char *properties_str = gtk_accessible_attribute_set_to_string (properties);
|
|
||||||
char *relations_str = gtk_accessible_attribute_set_to_string (relations);
|
|
||||||
|
|
||||||
GTK_NOTE(A11Y,
|
|
||||||
{
|
{
|
||||||
|
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);
|
||||||
GtkAccessibleRole role = gtk_at_context_get_accessible_role (self);
|
GtkAccessibleRole role = gtk_at_context_get_accessible_role (self);
|
||||||
GtkAccessible *accessible = gtk_at_context_get_accessible (self);
|
GtkAccessible *accessible = gtk_at_context_get_accessible (self);
|
||||||
GEnumClass *class = g_type_class_ref (GTK_TYPE_ACCESSIBLE_ROLE);
|
GEnumClass *class = g_type_class_ref (GTK_TYPE_ACCESSIBLE_ROLE);
|
||||||
GEnumValue *value = g_enum_get_value (class, role);
|
GEnumValue *value = g_enum_get_value (class, role);
|
||||||
|
|
||||||
g_print ("*** Accessible state changed for accessible “%s”, with role “%s” (%d):\n"
|
g_print ("*** Accessible state changed for accessible “%s”, with role “%s” (%d):\n"
|
||||||
"*** states = %s\n"
|
"*** states = %s\n"
|
||||||
"*** properties = %s\n"
|
"*** properties = %s\n"
|
||||||
@ -70,11 +70,11 @@ gtk_test_at_context_state_change (GtkATContext *self,
|
|||||||
properties_str,
|
properties_str,
|
||||||
relations_str);
|
relations_str);
|
||||||
g_type_class_unref (class);
|
g_type_class_unref (class);
|
||||||
});
|
|
||||||
|
|
||||||
g_free (states_str);
|
g_free (states_str);
|
||||||
g_free (properties_str);
|
g_free (properties_str);
|
||||||
g_free (relations_str);
|
g_free (relations_str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user