mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
* Headers/AppKit/NSCursor.h:
* Source/NSCursor.m (greenArrowCursor): Use getStandardCursor() to get GSGreenArrowCursor. New cursor type GSGreeanArrowCursor was added.
This commit is contained in:
parent
73d3aec68f
commit
bdd241a52d
2 changed files with 3 additions and 17 deletions
|
@ -155,7 +155,8 @@ typedef enum {
|
|||
GSResizeDownCursor,
|
||||
GSResizeUpDownCursor,
|
||||
GSContextualMenuCursor,
|
||||
GSDisappearingItemCursor
|
||||
GSDisappearingItemCursor,
|
||||
GSGreenArrowCursor
|
||||
} GSCursorTypes;
|
||||
|
||||
#endif /* _GNUstep_H_NSCursor */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue