diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-05 18:16:55 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-12 07:41:33 -0400 |
commit | e8cccbb55c83dfb01ae768a44fc40b638d8d59a4 (patch) | |
tree | d3153277772e76e56c1b2d24beb0bcd7bace077a /gtk | |
parent | 492b732872edaf428c39a50c6b73655ef05a2823 (diff) | |
download | gtk+-e8cccbb55c83dfb01ae768a44fc40b638d8d59a4.tar.gz |
a11y: Avoid a warning
The listbox row accessible code was giving warnings when
parent is NULL, at destruction time.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/a11y/gtklistboxrowaccessible.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/a11y/gtklistboxrowaccessible.c b/gtk/a11y/gtklistboxrowaccessible.c index 36e84a728d..2fd548a999 100644 --- a/gtk/a11y/gtklistboxrowaccessible.c +++ b/gtk/a11y/gtklistboxrowaccessible.c @@ -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 (widget == (GtkWidget*)gtk_list_box_get_selected_row (GTK_LIST_BOX (parent))) |