From 01d278a74ff93892a9e61cf112105ba7fd22b97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 3 Oct 2013 14:00:30 +0200 Subject: [PATCH] gtk_list_box_set_focus: Handle ist_box == NULL Rows without a parent GtkListBox can happen in Glade and its previewer. --- gtk/gtklistbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index d94c966be2..bcff01b3c5 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -2420,6 +2420,9 @@ gtk_list_box_row_set_focus (GtkListBoxRow *row) GdkModifierType state = 0; gboolean modify_selection_pressed; + if (!list_box) + return; + modify_selection_pressed = FALSE; if (gtk_get_current_event_state (&state)) {