Correction for bug#16049.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@22630 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-03-10 06:26:38 +00:00
parent d1c3acdb2d
commit b17de24bf8
2 changed files with 20 additions and 18 deletions

View file

@ -1,3 +1,7 @@
2006-03-10 01:24 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormViewEditor.m: Correction for bug#16049
2006-03-09 05:18 Gregory John Casamento <greg_casamento@yahoo.com>
* Images/GormEHCoil.tiff

View file

@ -1178,24 +1178,22 @@ static BOOL currently_displaying = NO;
NSString *name = [document nameForObject: anObject];
NSPoint dragPoint = [theEvent locationInWindow];
pb = [NSPasteboard pasteboardWithName: NSDragPboard];
[pb declareTypes: [NSArray arrayWithObject: GormLinkPboardType]
owner: self];
[pb setString: name forType: GormLinkPboardType];
[NSApp displayConnectionBetween: anObject and: nil];
// isLinkSource = YES;
[self dragImage: [NSApp linkImage]
at: dragPoint
offset: NSZeroSize
event: theEvent
pasteboard: pb
source: self
slideBack: YES];
// isLinkSource = NO;
return;
if(name != nil)
{
pb = [NSPasteboard pasteboardWithName: NSDragPboard];
[pb declareTypes: [NSArray arrayWithObject: GormLinkPboardType]
owner: self];
[pb setString: name forType: GormLinkPboardType];
[NSApp displayConnectionBetween: anObject and: nil];
[self dragImage: [NSApp linkImage]
at: dragPoint
offset: NSZeroSize
event: theEvent
pasteboard: pb
source: self
slideBack: YES];
}
}
- (unsigned) draggingEntered: (id<NSDraggingInfo>)sender