From 6c77f65ea638691e62ea50a788622742b7fa92e6 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 c4b8d04f04..c438c144a1 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -2418,6 +2418,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)) {