diff options
author | Marcus Karlsson <mk@acc.umu.se> | 2014-10-26 12:26:48 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-10-27 06:46:12 -0400 |
commit | a703437796fefb44d4058cd36d6ba13abaab4725 (patch) | |
tree | 530ff434b3e1402886ae27bc787b9433bb983183 /gdk | |
parent | 506d59f52666bd0f43ff950e46dd0b196e07f729 (diff) | |
download | gtk+-a703437796fefb44d4058cd36d6ba13abaab4725.tar.gz |
quartz: fix build on 10.6 and below
It is not possible to successfully build GTK+ on OS X 10.6 and below
since NSFullScreenWindowMask is only available starting with 10.7. Add
ifdef guards around setStyleMask: in order to allow it to build on
earlier OS X releases.
https://bugzilla.gnome.org/show_bug.cgi?id=737561
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/quartz/GdkQuartzNSWindow.c | 4 | ||||
-rw-r--r-- | gdk/quartz/GdkQuartzNSWindow.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdk/quartz/GdkQuartzNSWindow.c b/gdk/quartz/GdkQuartzNSWindow.c index 6bc05a4c4d..43348ef0f7 100644 --- a/gdk/quartz/GdkQuartzNSWindow.c +++ b/gdk/quartz/GdkQuartzNSWindow.c @@ -654,6 +654,8 @@ update_context_from_dragging_info (id <NSDraggingInfo> sender) _gdk_quartz_drag_source_context = NULL; } +#ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER + - (void)setStyleMask:(NSUInteger)styleMask { gboolean was_fullscreen; @@ -669,4 +671,6 @@ update_context_from_dragging_info (id <NSDraggingInfo> sender) _gdk_quartz_window_update_fullscreen_state ([[self contentView] gdkWindow]); } +#endif + @end diff --git a/gdk/quartz/GdkQuartzNSWindow.h b/gdk/quartz/GdkQuartzNSWindow.h index 80b910cffc..540b965afb 100644 --- a/gdk/quartz/GdkQuartzNSWindow.h +++ b/gdk/quartz/GdkQuartzNSWindow.h @@ -42,7 +42,10 @@ -(BOOL)trackManualResize; -(void)showAndMakeKey:(BOOL)makeKey; -(void)hide; + +#ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER -(void)setStyleMask:(NSUInteger)styleMask; +#endif @end |