[gtk+/gtk-2-24] iconview: layout items immediately when setting a GtkTreeModel
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] iconview: layout items immediately when setting a GtkTreeModel
- Date: Tue, 8 Nov 2011 17:45:33 +0000 (UTC)
commit 5a03f4a6a50237d86959f596dda143dfc2f040d1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Oct 31 20:33:41 2011 -0400
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 54b3f3b..62877fa 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]