* Source/NSTextView.m: Add a message in the context menu

if there are no spelling suggestions


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-03-14 19:44:58 +00:00
parent e17e77ac22
commit fb20ec1095
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-03-14 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSTextView.m: Add a message in the context menu
if there are no spelling suggestions
2011-03-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenuItemCell.m: Make key equivalent modifier string

View file

@ -5623,6 +5623,14 @@ static const NSInteger GSSpellingSuggestionMenuItemTag = 1;
[menu insertItem: [NSMenuItem separatorItem] atIndex: i];
[[menu itemAtIndex: i] setTag: GSSpellingSuggestionMenuItemTag];
}
else
{
[menu insertItemWithTitle: _(@"No Suggestions") action:(SEL)0 keyEquivalent:@"" atIndex:0];
[[menu itemAtIndex: 0] setTag: GSSpellingSuggestionMenuItemTag];
[[menu itemAtIndex: 0] setEnabled: NO];
[menu insertItem: [NSMenuItem separatorItem] atIndex: 1];
[[menu itemAtIndex: 1] setTag: GSSpellingSuggestionMenuItemTag];
}
}
}