mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Use protocol not class for NSMenuItem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38277 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b0ab141b9a
commit
11a55d01f1
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-01-05 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Source/GSToolbarView.m (menuForEvent)
|
||||
Use protocol not class for NSMenuItem.
|
||||
|
||||
2014-12-26 German Arias <germanandre@gmx.es>
|
||||
|
||||
* Source/NSWindow.m (_checkTrackingRectangles:forEvent:): Use the
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<abstract>The toolbar view class.</abstract>
|
||||
|
||||
Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004-2015 Free Software Foundation, Inc.
|
||||
|
||||
Author: Quentin Mathe <qmathe@club-internet.fr>
|
||||
Date: January 2004
|
||||
|
@ -891,7 +891,7 @@ static NSInteger draggedItemIndex = NSNotFound;
|
|||
- (NSMenu *) menuForEvent: (NSEvent *)event
|
||||
{
|
||||
NSMenu *menu = [[[NSMenu alloc] initWithTitle: @""] autorelease];
|
||||
NSMenuItem *customize = [menu insertItemWithTitle: _(@"Customize Toolbar") action:@selector(runCustomizationPalette:) keyEquivalent:@"" atIndex:0];
|
||||
id <NSMenuItem> customize = [menu insertItemWithTitle: _(@"Customize Toolbar") action:@selector(runCustomizationPalette:) keyEquivalent:@"" atIndex:0];
|
||||
[customize setTarget: _toolbar];
|
||||
return menu;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue