Commit 5a03f4a6 authored by Cosimo Cecchi's avatar Cosimo Cecchi Committed by Matthias Clasen
Browse files

iconview: layout items immediately when setting a GtkTreeModel

As the draw handler expects the items to be laid out already, we cannot
queue a layout here to avoid a race condition with the resize that is
queued immediately after, which in turn would lead to a segfault later
in the paint_item() implementation.
parent b424735a
......@@ -5423,7 +5423,7 @@ gtk_icon_view_set_model (GtkIconView *icon_view,
gtk_icon_view_build_items (icon_view);
gtk_icon_view_queue_layout (icon_view);
gtk_icon_view_layout (icon_view);
g_object_notify (G_OBJECT (icon_view), "model");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment