mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Improvements for cursor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35565 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
22f55b8c28
commit
57fef8379e
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-09-13 German A. Arias <german@xelalug.org>
|
||||
|
||||
* Source/NSCursor.m (-set): Set an standard cursor image (GSArrowCursor)
|
||||
if there is no image available.
|
||||
|
||||
2012-09-11 00:08-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
Merged from the TestPlant brach. Changes by Marcian Llytwyn
|
||||
|
||||
|
|
|
@ -503,6 +503,20 @@ backgroundColorHint:(NSColor *)bg
|
|||
{
|
||||
[GSCurrentServer() setcursor: _cid];
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* No image? This is odd, so we set an standard
|
||||
* cursor image (GSArrowCursor).
|
||||
*/
|
||||
void *c = NULL;
|
||||
[GSCurrentServer() standardcursor: GSArrowCursor : &c];
|
||||
if (c != NULL)
|
||||
{
|
||||
[self _setCid: c];
|
||||
[GSCurrentServer() setcursor: _cid];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** <p>Sets whether if the cursor is set on -mouseEntered:.
|
||||
|
|
Loading…
Reference in a new issue