mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
fixed the info panel issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@7817 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
908efddd71
commit
257bc6530a
3 changed files with 7 additions and 1 deletions
|
@ -28,5 +28,6 @@
|
|||
- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName;
|
||||
|
||||
- (void)showPrefPanel:(id)sender;
|
||||
- (void)showInfoPanel:(id)sender;
|
||||
|
||||
@end
|
||||
|
|
|
@ -66,4 +66,9 @@ static NSDictionary *infoDict = nil;
|
|||
{
|
||||
}
|
||||
|
||||
- (void)showInfoPanel:(id)sender
|
||||
{
|
||||
[[NSApplication sharedApplication] orderFrontStandardInfoPanel:sender];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -59,7 +59,7 @@ void createMenu()
|
|||
|
||||
menu = [[NSMenu alloc] initWithTitle:APP_NAME];
|
||||
|
||||
[menu addItemWithTitle:@"Info" action:@selector(orderFrontStandardInfoPanel:) keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Info" action:@selector(showInfoPanel:) keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Edit" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Windows" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Services" action:action keyEquivalent:@""];
|
||||
|
|
Loading…
Reference in a new issue