summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2019-03-29 16:26:20 -0700
committerChristian Hergert <chergert@redhat.com>2019-03-29 16:26:20 -0700
commit8dfb33fb5f314741bd0efea4626b93edcf9df7d7 (patch)
tree9a1c6441cb6d1fd6fb695813d8482efa27cf48c5
parentf9e19dca4975cd5c369ef3f182f442fea0613841 (diff)
downloadgtk+-8dfb33fb5f314741bd0efea4626b93edcf9df7d7.tar.gz
flowbox: check for flowbox when updating selection
-rw-r--r--gtk/gtkflowbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 0a02376bb9..e5414d4c2e 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -297,6 +297,9 @@ gtk_flow_box_child_set_focus (GtkFlowBoxChild *child)
gboolean modify;
gboolean extend;
+ if (box == NULL)
+ return;
+
get_current_selection_modifiers (GTK_WIDGET (box), &modify, &extend);
if (modify)