forked from AuroraMiddleware/gtk
Move Leopard-specific type definitions to gdkquartz.h
Update includes subsequently where it matters. Fixes build on Mac OS X 10.4.
This commit is contained in:
parent
3770d914ec
commit
e634f3fbe0
@ -23,6 +23,7 @@
|
|||||||
#include "gdkregion-generic.h"
|
#include "gdkregion-generic.h"
|
||||||
#include "gdkwindow-quartz.h"
|
#include "gdkwindow-quartz.h"
|
||||||
#include "gdkprivate-quartz.h"
|
#include "gdkprivate-quartz.h"
|
||||||
|
#include "gdkquartz.h"
|
||||||
|
|
||||||
@implementation GdkQuartzView
|
@implementation GdkQuartzView
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include <gdk/gdkprivate.h>
|
#include <gdk/gdkprivate.h>
|
||||||
#include <gdk/quartz/gdkpixmap-quartz.h>
|
#include <gdk/quartz/gdkpixmap-quartz.h>
|
||||||
#include <gdk/quartz/gdkwindow-quartz.h>
|
#include <gdk/quartz/gdkwindow-quartz.h>
|
||||||
|
#include <gdk/quartz/gdkquartz.h>
|
||||||
|
|
||||||
#include <gdk/gdk.h>
|
#include <gdk/gdk.h>
|
||||||
|
|
||||||
|
@ -26,6 +26,19 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
/* 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
|
||||||
|
|
||||||
|
#ifndef CGFLOAT_DEFINED
|
||||||
|
typedef float CGFloat;
|
||||||
|
#endif
|
||||||
|
|
||||||
NSWindow *gdk_quartz_window_get_nswindow (GdkWindow *window);
|
NSWindow *gdk_quartz_window_get_nswindow (GdkWindow *window);
|
||||||
NSView *gdk_quartz_window_get_nsview (GdkWindow *window);
|
NSView *gdk_quartz_window_get_nsview (GdkWindow *window);
|
||||||
NSImage *gdk_quartz_pixbuf_to_ns_image_libgtk_only (GdkPixbuf *pixbuf);
|
NSImage *gdk_quartz_pixbuf_to_ns_image_libgtk_only (GdkPixbuf *pixbuf);
|
||||||
|
@ -25,19 +25,6 @@
|
|||||||
#import <gdk/quartz/GdkQuartzView.h>
|
#import <gdk/quartz/GdkQuartzView.h>
|
||||||
#import <gdk/quartz/GdkQuartzWindow.h>
|
#import <gdk/quartz/GdkQuartzWindow.h>
|
||||||
|
|
||||||
/* 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
|
|
||||||
|
|
||||||
#ifndef CGFLOAT_DEFINED
|
|
||||||
typedef float CGFloat;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* Window implementation for Quartz
|
/* Window implementation for Quartz
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gtkquartz.h"
|
#include "gtkquartz.h"
|
||||||
|
#include <gdk/quartz/gdkquartz.h>
|
||||||
#include "gtkalias.h"
|
#include "gtkalias.h"
|
||||||
|
|
||||||
NSImage *
|
NSImage *
|
||||||
|
Loading…
Reference in New Issue
Block a user