summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-10-31 20:33:41 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-11-01 11:15:50 -0400
commitd808daccc1abed9759381c9bb46ad1061d3166b7 (patch)
tree9c48a21a67a019ed4df32d4f5a59519d77fbeadf /gtk/gtkiconview.c
parenta77162ebaf001beb15a7db658c40a538497bdf33 (diff)
downloadgtk+-d808daccc1abed9759381c9bb46ad1061d3166b7.tar.gz
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
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r--gtk/gtkiconview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 10811d48b8..66072cad82 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -4934,7 +4934,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");