* Headers/AppKit/NSCursor.h:

* Source/NSCursor.m (greenArrowCursor):
Use getStandardCursor() to get GSGreenArrowCursor. New cursor type
GSGreeanArrowCursor was added.
This commit is contained in:
Sergii Stoian 2019-04-17 17:46:16 +03:00
parent 73d3aec68f
commit bdd241a52d
2 changed files with 3 additions and 17 deletions

View file

@ -155,7 +155,8 @@ typedef enum {
GSResizeDownCursor,
GSResizeUpDownCursor,
GSContextualMenuCursor,
GSDisappearingItemCursor
GSDisappearingItemCursor,
GSGreenArrowCursor
} GSCursorTypes;
#endif /* _GNUstep_H_NSCursor */

View file

@ -299,22 +299,7 @@ NSCursor *getStandardCursor(NSString *name, int style)
+ (NSCursor*) greenArrowCursor
{
NSString *name = @"GSGreenArrowCursor";
NSCursor *cursor = [cursorDict objectForKey: name];
if (cursor == nil)
{
void *c;
cursor = [[NSCursor_class alloc] initWithImage: nil
hotSpot: NSZeroPoint];
[GSCurrentServer() standardcursor: GSArrowCursor : &c];
[GSCurrentServer() recolorcursor: [NSColor greenColor]
: [NSColor blackColor] : c];
[cursor _setCid: c];
[cursorDict setObject: cursor forKey: name];
RELEASE(cursor);
}
return cursor;
return getStandardCursor(@"GSGreenArrowCursor", GSGreenArrowCursor);
}
/*