GNOME Bugzilla – Bug 663138
iconview: layout items immediately when setting a GtkTreeModel
Last modified: 2011-11-16 22:50:10 UTC
See attached patch for the rationale. (Note that for some reason this only happens with a combination of setting the model property late after construction and using GtkClutter)
Created attachment 200374 [details] [review] 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.
Attachment 200374 [details] pushed as d808dac - iconview: layout items immediately when setting a GtkTreeModel Pushed after Matthias' ack.
this commit crashes lxappearance Program received signal SIGSEGV, Segmentation fault. 0xb7c0a76d in gtk_icon_view_layout_single_row (icon_view=0x813d018, first_item=0x812e000, item_width=12, row=0, y=0xbfffd390, maximum_width=0xbfffd394) at gtkiconview.c:2749 2749 max_height[i] = MAX (max_height[i], item->box[i].height); (gdb) bt full
+ Trace 229046
The commit just isn't right for the 2.24 branch; I reverted it now. http://git.gnome.org/browse/gtk+/commit/?h=gtk-2-24&id=5c3bb1839cac52828756f9ddb98f49d586853991