Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+/files: gtk+-2.24.8-iconview-layout.patch
Date: Thu, 17 Nov 2011 03:15:44
Message-Id: 20111117031534.8F9002004C@flycatcher.gentoo.org
1 tetromino 11/11/17 03:15:34
2
3 Added: gtk+-2.24.8-iconview-layout.patch
4 Log:
5 Add upstream patch to prevent segfault in gtk_icon_view_layout_single_row, drop broken version. Thanks to Rafał Mużyło (galtgendo) for reporting.
6
7 (Portage version: 2.2.0_alpha74/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 x11-libs/gtk+/files/gtk+-2.24.8-iconview-layout.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/files/gtk+-2.24.8-iconview-layout.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/files/gtk+-2.24.8-iconview-layout.patch?rev=1.1&content-type=text/plain
14
15 Index: gtk+-2.24.8-iconview-layout.patch
16 ===================================================================
17 From 5c3bb1839cac52828756f9ddb98f49d586853991 Mon Sep 17 00:00:00 2001
18 From: Cosimo Cecchi <cosimoc@×××××.org>
19 Date: Wed, 16 Nov 2011 22:38:45 +0000
20 Subject: Revert "iconview: layout items immediately when setting a GtkTreeModel"
21
22 It makes GtkIconView segfault on GTK 2.24.
23
24 gtk_icon_view_expose() calls gtk_icon_view_layout() first thing if
25 there's a layout queued anyway, so we wouldn't end up in the same
26 situation causing the crash the original patch is supposed to fix.
27
28 This reverts commit 5a03f4a6a50237d86959f596dda143dfc2f040d1.
29
30 https://bugzilla.gnome.org/show_bug.cgi?id=663138
31 ---
32 diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
33 index 62877fa..54b3f3b 100644
34 --- a/gtk/gtkiconview.c
35 +++ b/gtk/gtkiconview.c
36 @@ -5423,7 +5423,7 @@ gtk_icon_view_set_model (GtkIconView *icon_view,
37
38 gtk_icon_view_build_items (icon_view);
39
40 - gtk_icon_view_layout (icon_view);
41 + gtk_icon_view_queue_layout (icon_view);
42 }
43
44 g_object_notify (G_OBJECT (icon_view), "model");
45 --
46 cgit v0.9.0.2