From a53a30c7f87581241a81027451d614e6bc6fc0dc Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Mon, 31 Oct 2011 20:33:41 -0400 Subject: [PATCH] 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. https://bugzilla.gnome.org/show_bug.cgi?id=663138 --- gtk/gtkiconview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 61175b48c8..97f3f80d72 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -4915,7 +4915,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");