git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4501 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Michael Silva 1999-06-30 23:50:51 +00:00
parent 0aa53018c5
commit 9959a33653
3 changed files with 14 additions and 2 deletions

View file

@ -8,6 +8,10 @@ sub-menu again - it doesn't. [FIXED]
I'm not sure if you already know about this one. [FIXED]
6. If I drag off the bottom of a menu (or submenu) then release the mouse
button, the app crashes. [FIXED]
[ 7 is fixed in the backend. ]
* Source/NSMenuItemCell.m: paper-bag-over-the-head-goof:
keyEquivalents are now drawn. How did I miss those?
1999-06-29 Michael Hanni <mhanni@sprintmail.com>

View file

@ -581,10 +581,10 @@ NSApplication *NSApp = nil;
if (!copyOfMainMenu) /* display the menu under the mouse */
copyOfMainMenu = [main_menu copy];
copyMenuWindow = [copyOfMainMenu menuWindow];
copyMenuWindow = [copyOfMainMenu window];
[copyOfMainMenu _rightMouseDisplay];
[copyMenuWindow _captureMouse: self];
[[copyOfMainMenu menuCells] mouseDown: theEvent];
[[copyOfMainMenu menuView] mouseDown: theEvent];
[copyMenuWindow _releaseMouse: self];
}
break;

View file

@ -228,6 +228,7 @@ static BOOL usesUserKeyEquivalents = YES;
{
NSGraphicsContext *ctxt = GSCurrentContext();
NSRect floodRect = cellFrame;
NSString *keyQ = nil;
NSDrawButton(cellFrame, cellFrame);
@ -256,6 +257,13 @@ static BOOL usesUserKeyEquivalents = YES;
floodRect.size.width = 7;
[self _drawImage:[NSImage imageNamed:@"common_3DArrowRight"] inFrame:floodRect];
} else if (keyQ = [self keyEquivalent]) {
floodRect.origin.x = cellFrame.size.width - 12;
floodRect.origin.y += 5;
floodRect.size.height = 7;
floodRect.size.width = 7;
[self _drawText:keyQ inFrame:floodRect];
}
}
@end