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:
committed by
Alexander Larsson
parent
8ee5c0c2ba
commit
01d278a74f
@ -2420,6 +2420,9 @@ gtk_list_box_row_set_focus (GtkListBoxRow *row)
|
|||||||
GdkModifierType state = 0;
|
GdkModifierType state = 0;
|
||||||
gboolean modify_selection_pressed;
|
gboolean modify_selection_pressed;
|
||||||
|
|
||||||
|
if (!list_box)
|
||||||
|
return;
|
||||||
|
|
||||||
modify_selection_pressed = FALSE;
|
modify_selection_pressed = FALSE;
|
||||||
if (gtk_get_current_event_state (&state))
|
if (gtk_get_current_event_state (&state))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user