[gtk+/quartz-integration] Incorporate Kristian's adjustments to 516dd46



commit 49bb11310a9fb7cb323505173706b746ffce31dd
Author: John Ralls <jralls ceridwen us>
Date:   Tue Jul 26 21:07:26 2011 -0700

    Incorporate Kristian's adjustments to 516dd46

 gdk/quartz/gdkwindow-quartz.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index ebfd795..5dac054 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2586,17 +2586,19 @@ gdk_quartz_window_set_decorations (GdkWindow       *window,
        * recreating the toplevel. There might be bad side-effects of doing
        * that, but it seems alright.
        */
+#if MAC_OS_X_VERSION_MIN_ALLOWED > MAC_OS_X_VERSION_10_5
       if ([impl->toplevel respondsToSelector:@selector(setStyleMask:)])
         {
           [impl->toplevel setStyleMask:new_mask];
         }
       else
+#endif
         {
           [impl->toplevel release];
           impl->toplevel = [[GdkQuartzNSWindow alloc] initWithContentRect:rect
-                                                              styleMask:new_mask
-                                                                backing:NSBackingStoreBuffered
-                                                                  defer:NO];
+                                                                styleMask:new_mask
+                                                                  backing:NSBackingStoreBuffered
+                                                                    defer:NO];
           [impl->toplevel setHasShadow: window_type_hint_to_shadow (impl->type_hint)];
           [impl->toplevel setLevel: window_type_hint_to_level (impl->type_hint)];
           [impl->toplevel setContentView:old_view];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]