[gtk+/gtk-2-24-quartz: 1/2] quartz: Remove MAC_OS_X_VERSION_MIN_ALLOWED ifdef



commit 7e0583078dafdeeecf1249f46dfe8f380764e0c3
Author: Kristian Rietveld <kris gtk org>
Date:   Thu Jul 28 17:44:02 2011 +0200

    quartz: Remove MAC_OS_X_VERSION_MIN_ALLOWED ifdef
    
    I tried to suppress compiler warnings on pre-10.6 machines this way,
    but it defeats its purpose when you compile for pre-10.6 machines on
    a 10.6 machine.  For now, we have to live with the warnings when
    compiling on/for pre-10.6 machines, there does not seem an easy and proper
    way to suppress the warnings.

 gdk/quartz/gdkwindow-quartz.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index a9d4713..0c8a19c 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2649,13 +2649,11 @@ gdk_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 = [[GdkQuartzWindow alloc] initWithContentRect:rect



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