mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:17:40 +00:00
Replace sel_eq with sel_isEqual
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31285 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8e026b8e66
commit
26fcda321b
12 changed files with 56 additions and 41 deletions
|
@ -1457,9 +1457,9 @@ originalContentsURL: (NSURL *)orig
|
|||
|
||||
- (BOOL) validateUserInterfaceItem: (id <NSValidatedUserInterfaceItem>)anItem
|
||||
{
|
||||
if (sel_eq([anItem action], @selector(revertDocumentToSaved:)))
|
||||
if (sel_isEqual([anItem action], @selector(revertDocumentToSaved:)))
|
||||
return ([self fileName] != nil && [self isDocumentEdited]);
|
||||
if (sel_eq([anItem action], @selector(saveDocument:)))
|
||||
if (sel_isEqual([anItem action], @selector(saveDocument:)))
|
||||
return [self isDocumentEdited];
|
||||
|
||||
// FIXME should validate spa popup items; return YES if it's a native type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue