mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 02:00:48 +00:00
Revert last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38394 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2df985f377
commit
687bada9e1
4 changed files with 5 additions and 70 deletions
|
@ -125,20 +125,17 @@
|
|||
|
||||
@interface NSMenuView (GNUstepPrivate)
|
||||
- (NSArray *)_itemCells;
|
||||
- (void)_finish;
|
||||
@end
|
||||
|
||||
|
||||
static NSZone *menuZone = NULL;
|
||||
static NSString *NSMenuLocationsKey = @"NSMenuLocations";
|
||||
static NSString *NSEnqueuedMenuMoveName = @"EnqueuedMoveNotificationName";
|
||||
static NSNotificationCenter *nc;
|
||||
static BOOL menuBarVisible = YES;
|
||||
static NSMenu *_CurrentMenu = nil;
|
||||
|
||||
@interface NSMenu (GNUstepPrivate)
|
||||
|
||||
+ (NSMenu*)_currentMenu;
|
||||
+ (void)_setCurrentMenu:(NSMenu*)menu;
|
||||
- (NSString *) _name;
|
||||
- (void) _setName: (NSString *)name;
|
||||
- (NSMenuPanel *) _createWindow;
|
||||
|
@ -147,7 +144,6 @@ static NSMenu *_CurrentMenu = nil;
|
|||
- (void) _setGeometry;
|
||||
- (void) _updateUserDefaults: (id) notification;
|
||||
- (void) _organizeMenu;
|
||||
- (void) _finish;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -179,39 +175,10 @@ static NSMenu *_CurrentMenu = nil;
|
|||
}
|
||||
[super orderFrontRegardless];
|
||||
}
|
||||
|
||||
- (void)orderOut:(id)sender
|
||||
{
|
||||
[super orderOut:sender];
|
||||
[_the_menu _finish];
|
||||
}
|
||||
|
||||
- (void)orderWindow:(NSWindowOrderingMode)place relativeTo:(NSInteger)otherWin
|
||||
{
|
||||
[super orderWindow:place relativeTo:otherWin];
|
||||
[_the_menu _finish];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSMenu (GNUstepPrivate)
|
||||
|
||||
+ (NSMenu*)_currentMenu
|
||||
{
|
||||
return _CurrentMenu;
|
||||
}
|
||||
|
||||
+ (void)_setCurrentMenu:(NSMenu*)menu
|
||||
{
|
||||
@synchronized(self)
|
||||
{
|
||||
if (_CurrentMenu != menu)
|
||||
{
|
||||
_CurrentMenu = menu;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (NSString *) _name;
|
||||
{
|
||||
return _name;
|
||||
|
@ -497,11 +464,6 @@ static NSMenu *_CurrentMenu = nil;
|
|||
[self sizeToFit];
|
||||
}
|
||||
|
||||
- (void) _finish
|
||||
{
|
||||
[(NSMenuView*)_view _finish];
|
||||
}
|
||||
|
||||
- (void) _setGeometry
|
||||
{
|
||||
NSPoint origin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue