mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 08:40:08 +00:00
a11y: Avoid a warning
The listbox row accessible code was giving warnings when parent is NULL, at destruction time.
This commit is contained in:
parent
b9f91bcd8c
commit
22ab2ca2a5
@ -50,7 +50,8 @@ gtk_list_box_row_accessible_ref_state_set (AtkObject *obj)
|
||||
if (widget != NULL)
|
||||
{
|
||||
parent = gtk_widget_get_parent (widget);
|
||||
if (gtk_list_box_get_selection_mode (GTK_LIST_BOX (parent)) != GTK_SELECTION_NONE)
|
||||
if (parent != NULL &&
|
||||
gtk_list_box_get_selection_mode (GTK_LIST_BOX (parent)) != GTK_SELECTION_NONE)
|
||||
atk_state_set_add_state (state_set, ATK_STATE_SELECTABLE);
|
||||
|
||||
if (gtk_list_box_row_is_selected (GTK_LIST_BOX_ROW (widget)))
|
||||
|
Loading…
Reference in New Issue
Block a user