rpms/gtk2/devel appearance-crash.patch, NONE, 1.1 gtk2.spec, 1.395, 1.396

Matthias Clasen mclasen at fedoraproject.org
Thu Aug 13 14:08:20 UTC 2009


Author: mclasen

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

Modified Files:
	gtk2.spec 
Added Files:
	appearance-crash.patch 
Log Message:
fix a possible crash


appearance-crash.patch:
 gtkiconview.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- NEW FILE appearance-crash.patch ---
diff -up gtk+-2.17.7/gtk/gtkiconview.c.appearance-crash gtk+-2.17.7/gtk/gtkiconview.c
--- gtk+-2.17.7/gtk/gtkiconview.c.appearance-crash	2009-08-13 10:03:01.717854077 -0400
+++ gtk+-2.17.7/gtk/gtkiconview.c	2009-08-13 10:03:31.483855146 -0400
@@ -3498,16 +3498,16 @@ gtk_icon_view_get_item_at_coords (GtkIco
 		    {
 		      if (cell_at_pos)
 			*cell_at_pos = info;
-		      
+
 		      return item;
 		    }
 		}
 
-	      if (only_in_cell)
-		return NULL;
-	      
 	      if (cell_at_pos)
 		*cell_at_pos = NULL;
+
+	      if (only_in_cell)
+		return NULL;
 	    }
 
 	  return item;


Index: gtk2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gtk2/devel/gtk2.spec,v
retrieving revision 1.395
retrieving revision 1.396
diff -u -p -r1.395 -r1.396
--- gtk2.spec	12 Aug 2009 03:12:02 -0000	1.395
+++ gtk2.spec	13 Aug 2009 14:08:20 -0000	1.396
@@ -17,7 +17,7 @@
 Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
 Name: gtk2
 Version: %{base_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 Source: http://download.gnome.org/sources/gtk+/2.17/gtk+-%{version}.tar.bz2
@@ -30,6 +30,9 @@ Patch0: gtk+-2.13.5-lib64.patch
 # http://bugzilla.redhat.com/show_bug.cgi?id=478400
 # Patch1: default_printer.patch
 
+# fixed upstream
+Patch2: appearance-crash.patch
+
 BuildRequires: atk-devel >= %{atk_version}
 BuildRequires: pango-devel >= %{pango_version}
 BuildRequires: glib2-devel >= %{glib2_version}
@@ -141,6 +144,7 @@ This package contains developer document
 
 %patch0 -p1 -b .lib64
 # %patch1 -p0 -b .default-printer
+%patch2 -p1 -b .appearance-crash
 
 # make sure that gtkmarshalers.{c, h} get regenerated during the build
 #  - caused by print_authentication.patch
@@ -385,6 +389,9 @@ fi
 
 
 %changelog
+* Thu Aug 13 2009 Matthias Clasen <mclasen at redhat.com> - 2.17.7-2
+- Fix a possible crash
+
 * Tue Aug 11 2009 Matthias Clasen <mclasen at redhat.com> - 2.17.7-1
 - 2.17.7
 




More information about the fedora-extras-commits mailing list