freebsd-ports/graphics/gnustep-slideshow/files/patch-Controller.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

41 lines
1.4 KiB
Objective-C

--- Controller.m.orig 2013-08-20 15:46:28.000000000 +0000
+++ Controller.m 2013-08-20 15:46:48.000000000 +0000
@@ -1021,32 +1021,32 @@
{
SEL action = [menuItem action];
- if ( sel_eq(action,@selector(removeImages:)) )
+ if ( sel_isEqual(action,@selector(removeImages:)) )
{
if (( [_backend count] == 0 ) || ( ! [browser selectedCells] ) )
return NO;
}
- if ( sel_eq(action,@selector(showNextImage:)) )
+ if ( sel_isEqual(action,@selector(showNextImage:)) )
{
if ( ( ( _current + 1 ) == [_backend count] ) || ( [_backend count] == 0 ) )
return NO;
}
- else if ( sel_eq(action,@selector(showPreviousImage:)) )
+ else if ( sel_isEqual(action,@selector(showPreviousImage:)) )
{
if ( [_backend count] == 0 )
return NO;
}
- else if ( sel_eq(action,@selector(fullscreenAction:)) )
+ else if ( sel_isEqual(action,@selector(fullscreenAction:)) )
{
if ( [_backend count] == 0 )
return NO;
}
- else if ( sel_eq(action,@selector(addMarkAction:)) )
+ else if ( sel_isEqual(action,@selector(addMarkAction:)) )
{
if ( ( [self showState] == ShowOnlyMarked ) || ([_backend count] == 0 ) )
return NO;
}
- else if ( sel_eq(action,@selector(showMarkAction:)) )
+ else if ( sel_isEqual(action,@selector(showMarkAction:)) )
{
if ( [_backend count] == 0 )
return NO;