mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
remove unrelated changes
This commit is contained in:
parent
c8c45021da
commit
81455c2257
1 changed files with 0 additions and 35 deletions
|
@ -4982,40 +4982,6 @@ right.)
|
|||
RELEASE(attachment);
|
||||
return YES;
|
||||
}
|
||||
if ([type isEqualToString: NSFilenamesPboardType])
|
||||
{
|
||||
NSArray *list = [pboard propertyListForType: NSFilenamesPboardType];
|
||||
NSMutableAttributedString *as = [[NSMutableAttributedString alloc] init];
|
||||
|
||||
for (NSString *filename in list)
|
||||
{
|
||||
NSFileWrapper *fw = [[NSFileWrapper alloc] initWithPath:filename];
|
||||
if (fw)
|
||||
{
|
||||
NSTextAttachment *attachment = [[NSTextAttachment alloc]
|
||||
initWithFileWrapper: fw];
|
||||
NSAttributedString *asat =
|
||||
[NSAttributedString attributedStringWithAttachment: attachment];
|
||||
|
||||
RELEASE(fw);
|
||||
RELEASE(attachment);
|
||||
|
||||
[as appendAttributedString:asat];
|
||||
}
|
||||
}
|
||||
|
||||
if (as && changeRange.location != NSNotFound &&
|
||||
[self shouldChangeTextInRange: changeRange
|
||||
replacementString: [as string]])
|
||||
{
|
||||
[self replaceCharactersInRange: changeRange
|
||||
withAttributedString: as];
|
||||
[self didChangeText];
|
||||
changeRange.length = [as length];
|
||||
[self setSelectedRange: NSMakeRange(NSMaxRange(changeRange),0)];
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
|
||||
// color accepting
|
||||
|
@ -5112,7 +5078,6 @@ right.)
|
|||
[ret addObject: NSRTFDPboardType];
|
||||
[ret addObject: NSTIFFPboardType];
|
||||
[ret addObject: NSFileContentsPboardType];
|
||||
[ret addObject: NSFilenamesPboardType];
|
||||
}
|
||||
if (_tf.is_rich_text)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue