mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
(-readSelectionFromPasteboard:type:, NSTIFFPboardType): Send -setFileWrapper: to the attachment after setting the wrapper's icon.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18259 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d572689c02
commit
5e0dc13462
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2003-12-06 14:03 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSTextView.m (-readSelectionFromPasteboard:type:,
|
||||
NSTIFFPboardType): Send -setFileWrapper: to the attachment after
|
||||
setting the wrapper's icon to force an update of the attachment's
|
||||
image. Reported by Fabien Vallon.
|
||||
|
||||
2003-12-03 02:54 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/GNUmakefile.postamble (after-clean): Add a missing ':'.
|
||||
|
|
|
@ -3576,6 +3576,9 @@ right.)
|
|||
NSAttributedString *as = [NSAttributedString attributedStringWithAttachment: attachment];
|
||||
|
||||
[wrapper setIcon: image];
|
||||
/* We changed the wrapper's icon. Reset the attachment to force
|
||||
an update of the attachment's cell's image. */
|
||||
[attachment setFileWrapper: wrapper];
|
||||
if ([self shouldChangeTextInRange: changeRange
|
||||
replacementString: [as string]])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue