mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4997 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8cad842435
commit
f758b19b04
2 changed files with 16 additions and 18 deletions
|
@ -597,7 +597,6 @@ extIconForApp(NSWorkspace *ws, NSString *appName, NSDictionary *typeInfo)
|
|||
{
|
||||
NSString *port = [appName stringByDeletingPathExtension];
|
||||
id app = nil;
|
||||
NSDictionary *userinfo = nil;
|
||||
|
||||
/*
|
||||
* Try to contact a running application.
|
||||
|
@ -617,6 +616,7 @@ extIconForApp(NSWorkspace *ws, NSString *appName, NSDictionary *typeInfo)
|
|||
{
|
||||
NSString *path;
|
||||
NSArray *args;
|
||||
NSDictionary *userinfo = nil;
|
||||
|
||||
path = [self locateApplicationBinary: appName];
|
||||
if (path == nil)
|
||||
|
@ -628,10 +628,10 @@ extIconForApp(NSWorkspace *ws, NSString *appName, NSDictionary *typeInfo)
|
|||
return NO;
|
||||
}
|
||||
|
||||
userinfo = [NSDictionary dictionaryWithObject: appName
|
||||
forKey: @"NSApplicationName"];
|
||||
|
||||
// App being launched, raise NSWorkspaceWillLaunchApplicationNotification
|
||||
userinfo = [NSDictionary dictionaryWithObject: port
|
||||
forKey: @"NSApplicationName"];
|
||||
|
||||
[workspaceCenter
|
||||
postNotificationName: NSWorkspaceWillLaunchApplicationNotification
|
||||
object: self
|
||||
|
@ -647,11 +647,6 @@ extIconForApp(NSWorkspace *ws, NSString *appName, NSDictionary *typeInfo)
|
|||
return NO;
|
||||
}
|
||||
|
||||
[workspaceCenter
|
||||
postNotificationName: NSWorkspaceDidLaunchApplicationNotification
|
||||
object: self
|
||||
userInfo: userinfo];
|
||||
|
||||
return YES;
|
||||
}
|
||||
else
|
||||
|
@ -959,10 +954,10 @@ inFileViewerRootedAtPath: (NSString *)rootFullpath
|
|||
if (path == nil)
|
||||
return NO;
|
||||
|
||||
userinfo = [NSDictionary dictionaryWithObject: appName
|
||||
forKey: @"NSApplicationName"];
|
||||
|
||||
// App being launched, raise NSWorkspaceWillLaunchApplicationNotification
|
||||
userinfo = [NSDictionary dictionaryWithObject:
|
||||
[[appName lastPathComponent] stringByDeletingPathExtension]
|
||||
forKey: @"NSApplicationName"];
|
||||
[workspaceCenter
|
||||
postNotificationName: NSWorkspaceWillLaunchApplicationNotification
|
||||
object: self
|
||||
|
@ -971,12 +966,6 @@ inFileViewerRootedAtPath: (NSString *)rootFullpath
|
|||
if ([NSTask launchedTaskWithLaunchPath: path arguments: nil] == nil)
|
||||
return NO;
|
||||
|
||||
// App has been launched raise NSWorkspaceDidLaunchApplicationNotification
|
||||
[workspaceCenter
|
||||
postNotificationName: NSWorkspaceDidLaunchApplicationNotification
|
||||
object: self
|
||||
userInfo: userinfo];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue