mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-09 04:00:08 +00:00
a11y: Different value types cannot be equal
Bail out early, instead of going deep into the GtkAccessibleValue type equal() implementation, where we expect both accessible values to have the same type.
This commit is contained in:
parent
9d65ee58c9
commit
fe50286e14
@ -185,6 +185,9 @@ gtk_accessible_value_equal (const GtkAccessibleValue *value_a,
|
||||
if (value_a == NULL || value_b == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (value_a->value_class != value_b->value_class)
|
||||
return FALSE;
|
||||
|
||||
if (value_a->value_class->equal == NULL)
|
||||
return FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user