mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 12:01:16 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@5572 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8336146f60
commit
8c82a8d800
2 changed files with 15 additions and 10 deletions
8
Gorm.m
8
Gorm.m
|
@ -495,12 +495,8 @@ NSString *GormLinkPboardType = @"GormLinkPboardType";
|
||||||
|
|
||||||
- (void) stopConnecting
|
- (void) stopConnecting
|
||||||
{
|
{
|
||||||
if ([self isConnecting])
|
[self setConnectDestination: nil window: nil rect: NSZeroRect];
|
||||||
{
|
[self setConnectSource: nil window: nil rect: NSZeroRect];
|
||||||
[self displayConnectionBetween: nil and: nil];
|
|
||||||
}
|
|
||||||
connectDestination = nil;
|
|
||||||
connectSource = nil;
|
|
||||||
isConnecting = NO;
|
isConnecting = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,14 @@
|
||||||
[panel orderFront: self];
|
[panel orderFront: self];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ([name isEqual: NSWindowDidResignKeyNotification] == YES)
|
||||||
|
{
|
||||||
|
if (current == 1)
|
||||||
|
{
|
||||||
|
/* FIXME - need to fix window focus handling for this to work */
|
||||||
|
// [NSApp stopConnecting];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) init
|
- (id) init
|
||||||
|
@ -305,6 +313,10 @@
|
||||||
selector: @selector(handleNotification:)
|
selector: @selector(handleNotification:)
|
||||||
name: IBWillEndTestingInterfaceNotification
|
name: IBWillEndTestingInterfaceNotification
|
||||||
object: nil];
|
object: nil];
|
||||||
|
[nc addObserver: self
|
||||||
|
selector: @selector(handleNotification:)
|
||||||
|
name: NSWindowDidResignKeyNotification
|
||||||
|
object: panel];
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -322,10 +334,7 @@
|
||||||
[popup setNeedsDisplay: YES];
|
[popup setNeedsDisplay: YES];
|
||||||
[panel makeKeyAndOrderFront: self];
|
[panel makeKeyAndOrderFront: self];
|
||||||
}
|
}
|
||||||
else
|
[self setCurrentInspector: self];
|
||||||
{
|
|
||||||
[self setCurrentInspector: self];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setCurrentInspector: (id)anObj
|
- (void) setCurrentInspector: (id)anObj
|
||||||
|
|
Loading…
Reference in a new issue