define deprecated gtk functions to avoid crashes (#486122)

This commit is contained in:
Nils Philippsen 2009-03-09 10:38:23 +00:00
parent 559c076506
commit 2d6ad9d107
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -up gimp-2.6.5/app/widgets/gimpuimanager.c.define-deprecated gimp-2.6.5/app/widgets/gimpuimanager.c
--- gimp-2.6.5/app/widgets/gimpuimanager.c.define-deprecated 2009-02-13 21:35:26.000000000 +0100
+++ gimp-2.6.5/app/widgets/gimpuimanager.c 2009-03-09 11:17:58.624783561 +0100
@@ -23,6 +23,7 @@
#include <string.h>
+#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>

View File

@ -107,6 +107,7 @@ Source0: ftp://ftp.gimp.org/pub/gimp/v%{binver}/gimp-%{version}.tar.bz2
Source1: gimp-plugin-mgr.in
Patch0: gimp-2.6.2-xdg-open.patch
Patch1: gimp-2.6.2-jpeg-units.patch
Patch2: gimp-2.6.5-define-deprecated.patch
%description
GIMP (GNU Image Manipulation Program) is a powerful image composition and
@ -186,6 +187,7 @@ EOF
%setup -q -n gimp-%{version}
%patch0 -p1 -b .xdg-open
%patch1 -p1 -b .jpeg-units
%patch2 -p1 -b .define-deprecated
%build
if [ ! -f configure ]; then
@ -465,6 +467,7 @@ fi
%changelog
* Mon Mar 09 2009 Nils Philippsen <nils@redhat.com> - 2:2.6.5-3
- rebuild against new WebKit
- define deprecated gtk functions to avoid crashes (#486122)
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:2.6.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild