1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/graphics/preview/files/patch-Document.m
David Chisnall 3bec8741ff Update to latest GNUstep core libraries.
Update dependent packages with more recent releases.
Remove old and bit-rotted ones.
Switch to using clang 3.3 and libobjc2 1.7 by default, so modern Objective-C features work out of the box and remove a lot of configurable options for sub-optimal (and, often, unsupported / deprecated upstream) configurations.
Take maintainership of GNUstep-related ports.

Several of the ports left in have scary warnings which mean that they are likely broken in lots of cases.  Future commits will fix them.

Approved by:	bapt
2013-08-28 18:26:01 +00:00

20 lines
535 B
Objective-C

--- Document.m.orig 2005-06-28 10:25:25.000000000 +0200
+++ Document.m 2012-06-09 11:09:51.000000000 +0200
@@ -35,6 +35,7 @@
#include <Foundation/NSNotification.h>
+#include <AppKit/AppKit.h>
#include <AppKit/NSApplication.h>
#include <AppKit/NSAffineTransform.h>
#include <AppKit/NSClipView.h>
@@ -592,7 +592,7 @@
{
SEL action = [menuItem action];
- if ( sel_eq(action,@selector(resize:)) )
+ if ( sel_isEqual(action,@selector(resize:)) )
{
if ( [menuItem tag] == [self _currentItem] )
return NO;