From 9047fab0f0bfecb768e94d67a5765bd2240c7d93 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 26 Jan 2009 19:34:38 +0000 Subject: [PATCH] - Add patch to avoid crashes when destroying a GtkScale with marks --- gtk-2.15.1-scale-marks-crasher.patch | 14 ++++++++++++++ gtk2.spec | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 gtk-2.15.1-scale-marks-crasher.patch diff --git a/gtk-2.15.1-scale-marks-crasher.patch b/gtk-2.15.1-scale-marks-crasher.patch new file mode 100644 index 0000000..0e161f7 --- /dev/null +++ b/gtk-2.15.1-scale-marks-crasher.patch @@ -0,0 +1,14 @@ +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; + } + diff --git a/gtk2.spec b/gtk2.spec index 726eee8..e9e6778 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -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 @@ Patch0: gtk+-2.13.5-lib64.patch 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 @@ GTK+ widget toolkit. %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 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/gtk-2.0 %changelog +* Mon Jan 26 2009 - Bastien Nocera - 2.15.1-5 +- Add patch to avoid crashes when destroying a GtkScale with marks + * Sun Jan 25 2009 Matthias Clasen - 2.15.1-4 - Draw radio action proxies as radio menuitems - Fix issues with toolitem action proxies and overflow