Gentoo Archives: gentoo-commits

From: "Mart Raudsepp (leio)" <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+/files: gtk+-2.14.3-fix-filesystem-double-free.patch gtk+-2.14.3-fix-password-dialog-on-mount.patch gtk+-2.14.3-dont-unset-filechooser-filter-after-first-use.patch gtk+-2.14.3-notebook-tab-draw-correctness.patch gtk+-2.14.3-fix-lpr_write-double-free.patch
Date: Mon, 29 Sep 2008 07:40:41
Message-Id: E1KkDMz-0006Kc-Sv@stork.gentoo.org
1 leio 08/09/29 07:40:37
2
3 Added: gtk+-2.14.3-fix-filesystem-double-free.patch
4 gtk+-2.14.3-fix-password-dialog-on-mount.patch
5 gtk+-2.14.3-dont-unset-filechooser-filter-after-first-use.patch
6 gtk+-2.14.3-notebook-tab-draw-correctness.patch
7 gtk+-2.14.3-fix-lpr_write-double-free.patch
8 Log:
9 Add a few fixes from upstream unreleased code
10 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64)
11
12 Revision Changes Path
13 1.1 x11-libs/gtk+/files/gtk+-2.14.3-fix-filesystem-double-free.patch
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-fix-filesystem-double-free.patch?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-fix-filesystem-double-free.patch?rev=1.1&content-type=text/plain
17
18 Index: gtk+-2.14.3-fix-filesystem-double-free.patch
19 ===================================================================
20 From gtk-2-14 branch:
21
22 2008-09-25 Michael Natterer
23
24 gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
25 don't unref the file system backend, the newly added
26 unset_file_system_backend() already does this (bug #553135).
27
28 --- branches/gtk-2-14/gtk/gtkfilechooserdefault.c 2008/09/25 11:22:34 21514
29 +++ branches/gtk-2-14/gtk/gtkfilechooserdefault.c 2008/09/25 11:23:42 21515
30 @@ -934,8 +934,6 @@
31
32 shortcuts_free (impl);
33
34 - g_object_unref (impl->file_system);
35 -
36 g_free (impl->browse_files_last_selected_name);
37
38 for (l = impl->filters; l; l = l->next)
39
40
41
42 1.1 x11-libs/gtk+/files/gtk+-2.14.3-fix-password-dialog-on-mount.patch
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-fix-password-dialog-on-mount.patch?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-fix-password-dialog-on-mount.patch?rev=1.1&content-type=text/plain
46
47 Index: gtk+-2.14.3-fix-password-dialog-on-mount.patch
48 ===================================================================
49 From gtk-2-14 branch:
50
51 2008-09-26 Matthias Clasen
52
53 Bug 553133 – GtkFileChooser won't ask to mount a volume
54
55 * gtk/gtkfilechooserdefault.c (shortcuts_activate_volume): Use
56 a GtkMountOperation when mounting, so that we get a password
57 dialog when required.
58
59 --- branches/gtk-2-14/gtk/gtkfilechooserdefault.c 2008/09/26 19:25:35 21523
60 +++ branches/gtk-2-14/gtk/gtkfilechooserdefault.c 2008/09/26 19:45:13 21524
61 @@ -10192,12 +10192,16 @@
62
63 if (!_gtk_file_system_volume_is_mounted (volume))
64 {
65 + GtkMountOperation *mount_op;
66 +
67 set_busy_cursor (impl, TRUE);
68
69 + mount_op = gtk_mount_operation_new (get_toplevel (GTK_WIDGET (impl)));
70 impl->shortcuts_activate_iter_cancellable =
71 - _gtk_file_system_mount_volume (impl->file_system, volume, NULL,
72 + _gtk_file_system_mount_volume (impl->file_system, volume, mount_op,
73 shortcuts_activate_volume_mount_cb,
74 g_object_ref (impl));
75 + g_object_unref (mount_op);
76 }
77 else
78 {
79
80
81
82 1.1 x11-libs/gtk+/files/gtk+-2.14.3-dont-unset-filechooser-filter-after-first-use.patch
83
84 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-dont-unset-filechooser-filter-after-first-use.patch?rev=1.1&view=markup
85 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-dont-unset-filechooser-filter-after-first-use.patch?rev=1.1&content-type=text/plain
86
87 Index: gtk+-2.14.3-dont-unset-filechooser-filter-after-first-use.patch
88 ===================================================================
89 2008-09-26 Matthias Clasen
90
91 Bug 553211 – GtkFileChooserButton unsets filter after first use
92
93 * gtk/gtkfilechooserdefault.c (show_and_select_files): Also
94 get the content-type, since it is used later on.
95 Pointed out by Davyd Madeley.
96
97 --- branches/gtk-2-14/gtk/gtkfilechooserdefault.c 2008/09/27 00:20:42 21527
98 +++ branches/gtk-2-14/gtk/gtkfilechooserdefault.c 2008/09/27 00:21:43 21528
99 @@ -6502,7 +6502,7 @@
100
101 impl->show_and_select_files_cancellable =
102 _gtk_file_system_get_folder (impl->file_system, parent_file,
103 - "standard::is-hidden,standard::type,standard::name",
104 + "standard::is-hidden,standard::type,standard::name,standard::content-type",
105 show_and_select_files_get_folder_cb, info);
106
107 profile_end ("end", NULL);
108
109
110
111 1.1 x11-libs/gtk+/files/gtk+-2.14.3-notebook-tab-draw-correctness.patch
112
113 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-notebook-tab-draw-correctness.patch?rev=1.1&view=markup
114 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-notebook-tab-draw-correctness.patch?rev=1.1&content-type=text/plain
115
116 Index: gtk+-2.14.3-notebook-tab-draw-correctness.patch
117 ===================================================================
118 From gtk-2-14 branch:
119
120 2008-09-26 Matthias Clasen
121
122 Bug 553578 - tabs are not drawn correctly
123
124 * gtk/gtknotebook.c: Track the visibility state of notebook tabs
125 between allocations so that we know to redraw the tab labels if
126 tabs are hidden and shown without changing position.
127 Reported by Marek Kašík, patch by Owen Taylor.
128
129 --- branches/gtk-2-14/gtk/gtknotebook.c 2008/09/26 23:58:12 21525
130 +++ branches/gtk-2-14/gtk/gtknotebook.c 2008/09/27 00:00:32 21526
131 @@ -153,6 +153,11 @@
132 guint reorderable : 1;
133 guint detachable : 1;
134
135 + /* if true, the tab label was visible on last allocation; we track this so
136 + * that we know to redraw the tab area if a tab label was hidden then shown
137 + * without changing position */
138 + guint tab_allocated_visible : 1;
139 +
140 GtkRequisition requisition;
141 GtkAllocation allocation;
142
143 @@ -5556,9 +5561,15 @@
144 gint tab_curvature;
145 gint tab_pos = get_effective_tab_pos (notebook);
146 gboolean tab_allocation_changed;
147 + gboolean was_visible = page->tab_allocated_visible;
148
149 - if (!page->tab_label)
150 - return FALSE;
151 + if (!page->tab_label ||
152 + !GTK_WIDGET_VISIBLE (page->tab_label) ||
153 + !gtk_widget_get_child_visible (page->tab_label))
154 + {
155 + page->tab_allocated_visible = FALSE;
156 + return was_visible;
157 + }
158
159 xthickness = widget->style->xthickness;
160 ythickness = widget->style->ythickness;
161 @@ -5630,6 +5641,12 @@
162
163 gtk_widget_size_allocate (page->tab_label, &child_allocation);
164
165 + if (!was_visible)
166 + {
167 + page->tab_allocated_visible = TRUE;
168 + tab_allocation_changed = TRUE;
169 + }
170 +
171 return tab_allocation_changed;
172 }
173
174
175
176
177 1.1 x11-libs/gtk+/files/gtk+-2.14.3-fix-lpr_write-double-free.patch
178
179 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-fix-lpr_write-double-free.patch?rev=1.1&view=markup
180 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/files/gtk+-2.14.3-fix-lpr_write-double-free.patch?rev=1.1&content-type=text/plain
181
182 Index: gtk+-2.14.3-fix-lpr_write-double-free.patch
183 ===================================================================
184 From gtk-2-14 branch:
185
186 2008-09-25 Marek Kasik
187
188 Bug 553241 – double freed pointer in lpr_write cause firefox3 crash
189
190 * modules/printbackends/lpr/gtkprintbackendlpr.c:
191 The redundant freeing of memory was removed.
192
193 Patch by Chris Wang
194
195 --- branches/gtk-2-14/modules/printbackends/lpr/gtkprintbackendlpr.c 2008/09/25 11:46:35 21516
196 +++ branches/gtk-2-14/modules/printbackends/lpr/gtkprintbackendlpr.c 2008/09/25 11:57:56 21517
197 @@ -289,8 +289,6 @@
198 lpr_print_cb (GTK_PRINT_BACKEND_LPR (ps->backend),
199 error, user_data);
200
201 - if (error)
202 - g_error_free (error);
203
204 if (error != NULL)
205 {