fix a problem with gtkentry.h

This commit is contained in:
Matthias Clasen 2009-07-13 13:27:01 +00:00
parent fb9170b0c4
commit 0e13f5c9e3
2 changed files with 20 additions and 1 deletions

13
entry-include-fix.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/gtk/gtkentrybuffer.h b/gtk/gtkentrybuffer.h
index cf2ddda..275aaa1 100644
--- a/gtk/gtkentrybuffer.h
+++ b/gtk/gtkentrybuffer.h
@@ -17,7 +17,7 @@
* Boston, MA 02111-1307, USA.
*/
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif

View File

@ -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
@ -29,6 +29,8 @@ Source3: im-cedilla.conf
Patch0: gtk+-2.13.5-lib64.patch
# http://bugzilla.redhat.com/show_bug.cgi?id=478400
Patch1: default_printer.patch
# from upstream
Patch2: entry-include-fix.patch
BuildRequires: atk-devel >= %{atk_version}
BuildRequires: pango-devel >= %{pango_version}
@ -141,6 +143,7 @@ This package contains developer documentation for the GTK+ widget toolkit.
%patch0 -p1 -b .lib64
%patch1 -p0 -b .default-printer
%patch2 -p1 -b .entry-include-fix
# make sure that gtkmarshalers.{c, h} get regenerated during the build
# - caused by print_authentication.patch
@ -376,6 +379,9 @@ fi
%changelog
* Mon Jul 13 2009 Matthias Clasen <mclasen@redhat.com> - 2.17.4-2
- Fix a problem with gtkentry.h
* Fri Jul 10 2009 Matthias Clasen <mclasen@redhat.com> - 2.17.4-1
- Update to 2.17.4