rpms/gtk2/devel gtk-2.15.1-scale-marks-crasher.patch, NONE, 1.1 gtk2.spec, 1.348, 1.349

Bastien Nocera hadess at fedoraproject.org
Mon Jan 26 19:35:09 UTC 2009


Author: hadess

Update of /cvs/pkgs/rpms/gtk2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28421

Modified Files:
	gtk2.spec 
Added Files:
	gtk-2.15.1-scale-marks-crasher.patch 
Log Message:
* Mon Jan 26 2009 - Bastien Nocera <bnocera at redhat.com> - 2.15.1-5
- Add patch to avoid crashes when destroying a GtkScale with marks


gtk-2.15.1-scale-marks-crasher.patch:

--- NEW FILE gtk-2.15.1-scale-marks-crasher.patch ---
Index: gtk/gtkrange.c
===================================================================
--- gtk/gtkrange.c	(revision 22222)
+++ gtk/gtkrange.c	(working copy)
@@ -1225,7 +1225,9 @@
   if (range->layout->n_marks)
     {
       g_free (range->layout->marks);
+      range->layout->marks = NULL;
       g_free (range->layout->mark_pos);
+      range->layout->mark_pos = NULL;
       range->layout->n_marks = 0;
     }
 


Index: gtk2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gtk2/devel/gtk2.spec,v
retrieving revision 1.348
retrieving revision 1.349
diff -u -r1.348 -r1.349
--- gtk2.spec	26 Jan 2009 03:09:30 -0000	1.348
+++ gtk2.spec	26 Jan 2009 19:34:38 -0000	1.349
@@ -16,7 +16,7 @@
 Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
 Name: gtk2
 Version: %{base_version}
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 Source: http://download.gnome.org/sources/gtk+/2.15/gtk+-%{version}.tar.bz2
@@ -30,6 +30,8 @@
 Patch2: workaround.patch
 # http://bugzilla.redhat.com/show_bug.cgi?id=478400
 Patch3: default_printer.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=569240
+Patch8: gtk-2.15.1-scale-marks-crasher.patch
 
 # fixed upstream
 Patch4: activatable-toolitem.patch
@@ -127,6 +129,7 @@
 %patch5 -p0 -b .imcontext-reset
 %patch6 -p1 -b .radio-proxy
 %patch7 -p0 -b .tool-proxy
+%patch8 -p0 -b .scale-marks
 
 %build
 libtoolize --force --copy
@@ -304,6 +307,9 @@
 %{_datadir}/gtk-2.0
 
 %changelog
+* Mon Jan 26 2009 - Bastien Nocera <bnocera at redhat.com> - 2.15.1-5
+- Add patch to avoid crashes when destroying a GtkScale with marks
+
 * Sun Jan 25 2009 Matthias Clasen <mclasen at redhat.com> - 2.15.1-4
 - Draw radio action proxies as radio menuitems
 - Fix issues with toolitem action proxies and overflow




More information about the fedora-extras-commits mailing list