mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Merge branch 'master' of github.com:gnustep/libs-gui into NSGridView_NSStackView_branch
This commit is contained in:
commit
b8ecd7b59b
2 changed files with 9 additions and 11 deletions
|
@ -1,3 +1,10 @@
|
|||
2021-02-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSPasteboard.m (-_pasteboardWithTarget:name:): Correct
|
||||
wrong order of arguments to NSMapInsert.
|
||||
* Source/NSPasteboard.m (-generalPasteboard): Simplify
|
||||
implementation.
|
||||
|
||||
2021-02-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSSearchFieldCell.m: Correct encoding/decoding that was
|
||||
|
|
|
@ -1095,16 +1095,7 @@ static NSMapTable *mimeMap = NULL;
|
|||
*/
|
||||
+ (NSPasteboard*) generalPasteboard
|
||||
{
|
||||
static NSPasteboard *generalPboard = nil;
|
||||
NSPasteboard *currentGeneralPboard;
|
||||
|
||||
// call pasteboardWithName: every time, to update server connection if needed
|
||||
currentGeneralPboard = [self pasteboardWithName: NSGeneralPboard];
|
||||
if (currentGeneralPboard != generalPboard)
|
||||
{
|
||||
ASSIGN(generalPboard, currentGeneralPboard);
|
||||
}
|
||||
return generalPboard;
|
||||
return [self pasteboardWithName: NSGeneralPboard];
|
||||
}
|
||||
|
||||
+ (void) initialize
|
||||
|
@ -2138,7 +2129,7 @@ description, [cmd stringByDeletingLastPathComponent]);
|
|||
{
|
||||
ASSIGN(p->target, (id)aTarget);
|
||||
ASSIGNCOPY(p->name, aName);
|
||||
NSMapInsert(pasteboards, (void*)p, (void*)p->name);
|
||||
NSMapInsert(pasteboards, (void*)p->name, (void*)p);
|
||||
[p autorelease];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue