Ticket #57035: gimp-gimpickbutton.patch

File gimp-gimpickbutton.patch, 675 bytes (added by rmottola (Riccardo), 6 years ago)
  • libgimpwidgets/gimppickbutton-quartz.c

    old new  
    3434#include <ApplicationServices/ApplicationServices.h>
    3535#endif
    3636
     37#ifndef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
     38@interface NSWindow (GIMPExt)
     39- (NSRect) convertRectToScreen: (NSRect)aRect;
     40@end
     41@implementation NSWindow (GIMPExt)
     42- (NSRect) convertRectToScreen: (NSRect)aRect
     43{
     44  NSRect result = aRect;
     45  NSPoint origin = result.origin;
     46  result.origin = [self convertBaseToScreen:origin];
     47  return result;
     48}
     49@end
     50
     51#endif
     52
    3753
    3854@interface GimpPickWindowController : NSObject
    3955{