From ea586adb0e958a6e5fb3f25e99bd986832fac063 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 29 Jan 2013 20:40:25 +0000 Subject: [PATCH] replace one patch with another more generically named one git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@14030 d708f5d6-7413-0410-9779-e7cbd77b26cf --- ...ge.patch => gtk-tiger-compatibility.patch} | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) rename tools/current-gtk-patches/{gdk-norootimage.patch => gtk-tiger-compatibility.patch} (51%) diff --git a/tools/current-gtk-patches/gdk-norootimage.patch b/tools/current-gtk-patches/gtk-tiger-compatibility.patch similarity index 51% rename from tools/current-gtk-patches/gdk-norootimage.patch rename to tools/current-gtk-patches/gtk-tiger-compatibility.patch index 3d258533f9..a79dd5ee14 100644 --- a/tools/current-gtk-patches/gdk-norootimage.patch +++ b/tools/current-gtk-patches/gtk-tiger-compatibility.patch @@ -1,3 +1,5 @@ +diff --git a/gdk/quartz/gdkimage-quartz.c b/gdk/quartz/gdkimage-quartz.c +index 1d4f8d7..3ca3cf0 100644 --- a/gdk/quartz/gdkimage-quartz.c +++ b/gdk/quartz/gdkimage-quartz.c @@ -137,6 +137,9 @@ _gdk_quartz_image_copy_to_image (GdkDrawable *drawable, @@ -8,7 +10,7 @@ + return image; +#else /* Special case for the root window. */ - CGRect rect = CGRectMake (src_x, src_y, width, height); + CGRect rect = CGRectMake (src_x, src_y, width, height); CGImageRef root_image_ref = CGWindowListCreateImage (rect, @@ -145,6 +148,7 @@ _gdk_quartz_image_copy_to_image (GdkDrawable *drawable, kCGWindowImageDefault); @@ -18,3 +20,23 @@ } else { +diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c +index cd6f878..19a9898 100644 +--- a/gtk/gtkclipboard-quartz.c ++++ b/gtk/gtkclipboard-quartz.c +@@ -25,6 +25,15 @@ + + #import + ++/* NSInteger only exists in Leopard and newer. This check has to be ++ * done after inclusion of the system headers. If NSInteger has not ++ * been defined, we know for sure that we are on 32-bit. ++ */ ++#ifndef NSINTEGER_DEFINED ++typedef int NSInteger; ++typedef unsigned int NSUInteger; ++#endif ++ + #include "gtkclipboard.h" + #include "gtkinvisible.h" + #include "gtkmain.h"