gtk_list_box_set_focus: Handle ist_box == NULL

Rows without a parent GtkListBox can happen in Glade and its previewer.
This commit is contained in:
Timm Bäder
2013-10-03 14:00:30 +02:00
committed by Alexander Larsson
parent 8ee5c0c2ba
commit 01d278a74f

View File

@ -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))
{