[gtk2/f16] Add upstream patch for crasher bug #749541.

Bill Nottingham notting at fedoraproject.org
Wed Nov 2 22:06:31 UTC 2011


commit ee8dd37078aeff2d1086d324a7fd5b2f254d3cb3
Author: Bill Nottingham <notting at redhat.com>
Date:   Wed Nov 2 15:45:29 2011 -0400

    Add upstream patch for crasher bug #749541.
    
    Upstream bug is https://bugzilla.gnome.org/show_bug.cgi?id=662633

 0a0fd5af99f2ae9b0f8cc6b943b98b7be43ed723.patch |   23 +++++++++++++++++++++++
 gtk2.spec                                      |    7 +++++++
 2 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/0a0fd5af99f2ae9b0f8cc6b943b98b7be43ed723.patch b/0a0fd5af99f2ae9b0f8cc6b943b98b7be43ed723.patch
new file mode 100644
index 0000000..b5351c6
--- /dev/null
+++ b/0a0fd5af99f2ae9b0f8cc6b943b98b7be43ed723.patch
@@ -0,0 +1,23 @@
+From 0a0fd5af99f2ae9b0f8cc6b943b98b7be43ed723 Mon Sep 17 00:00:00 2001
+From: Michael Natterer <mitch at gimp.org>
+Date: Wed, 02 Nov 2011 19:27:39 +0000
+Subject: Bug 662633 - Scheduled transaction editor crashes with gtk+-2.24.7
+
+Fix commit a516d2359c9eac84bfa4682a70a62315adedb1d6: check if
+priv->arrow_button exists in forall().
+---
+diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
+index edeab88..b2c4b15 100644
+--- a/gtk/gtktoolbar.c
++++ b/gtk/gtktoolbar.c
+@@ -2532,7 +2532,7 @@ gtk_toolbar_forall (GtkContainer *container,
+       list = next;
+     }
+   
+-  if (include_internals)
++  if (include_internals && priv->arrow_button)
+     callback (priv->arrow_button, callback_data);
+ }
+ 
+--
+cgit v0.9.0.2
diff --git a/gtk2.spec b/gtk2.spec
index 08c2b6f..342f3bd 100644
--- a/gtk2.spec
+++ b/gtk2.spec
@@ -40,6 +40,9 @@ Patch8: tooltip-positioning.patch
 # https://bugzilla.gnome.org/show_bug.cgi?id=611313
 Patch15: window-dragging.patch
 Patch16: gtk2-schar.patch
+# https://bugzilla.gnome.org/show_bug.cgi?id=662633
+# merged for 2.24.8
+Patch17: 0a0fd5af99f2ae9b0f8cc6b943b98b7be43ed723.patch
 
 BuildRequires: atk-devel >= %{atk_version}
 BuildRequires: glib2-devel >= %{glib2_version}
@@ -157,6 +160,7 @@ This package contains developer documentation for the GTK+ widget toolkit.
 #%patch14 -p1 -b .landscape-pdf-print
 %patch15 -p1 -b .window-dragging
 %patch16 -p1 -b .schar
+%patch17 -p1 -b .toolbar-arrow-button
 
 %build
 (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
@@ -343,6 +347,9 @@ fi
 %doc tmpdocs/examples
 
 %changelog
+* Wed Nov 02 2011 Bill Nottingham <notting at redhat.com> - 2.24.7-3
+- add upstream patch for #749541/b.g.o #662633
+
 * Wed Oct 26 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.24.7-2
 - Rebuilt for glibc bug#747377
 


More information about the scm-commits mailing list