Ticket #67408: gtk3_gdkwindow_quartz_c.diff

File gtk3_gdkwindow_quartz_c.diff, 1.6 KB (added by rmottola (Riccardo), 15 months ago)

futher replacements for 10.5/10.6

  • gdk/quartz/gdkwindow-quartz.c

    old new  
    8282
    8383#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
    8484static FullscreenSavedGeometry *get_fullscreen_geometry (GdkWindow *window);
     85NSWindowCollectionBehaviorFullScreenPrimary = NSWindowCollectionBehaviorDefault;
     86
     87#ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
     88typedef NSUInteger NSWindowCollectionBehavior;
     89
     90@interface NSWindow (GTKExtensions)
     91- (void)setCollectionBehavior:(NSWindowCollectionBehavior)behavior;
     92@end
     93
     94@implementation NSWindow (GTKExtensions)
     95- (void)setCollectionBehavior:(NSWindowCollectionBehavior)behavior
     96{
     97}
     98@end
     99#endif
     100
    85101#endif
    86102
    87103#define FULLSCREEN_DATA "fullscreen-data"
     
    29092925    {
    29102926#endif
    29112927      FullscreenSavedGeometry *geometry;
    2912       GdkWindowImplQuartz *impl = gdk_window_get_quartz_impl (window);
    29132928      NSRect frame;
    29142929
    29152930      if (GDK_WINDOW_DESTROYED (window) ||
     
    29172932          !impl)
    29182933        return;
    29192934
     2935#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
    29202936      geometry = get_fullscreen_geometry (window);
     2937#endif
    29212938      if (!geometry)
    29222939        {
    29232940          geometry = g_new (FullscreenSavedGeometry, 1);
     
    29752992  else
    29762993    {
    29772994#endif
    2978       GdkWindowImplQuartz *impl = gdk_window_get_quartz_impl (window);
    29792995      FullscreenSavedGeometry *geometry;
    29802996
    29812997      if (GDK_WINDOW_DESTROYED (window) ||
     
    29832999          !impl)
    29843000        return;
    29853001
     3002#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
    29863003      geometry = get_fullscreen_geometry (window);
     3004#endif
    29873005      if (geometry)
    29883006        {
    29893007          SetSystemUIMode (kUIModeNormal, 0);