mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 10:41:55 +00:00
* Headers/AppKit/NSGraphics.h: NSBeep() - Don't crash when a
graphics context isn't available (eg - from a subthread). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30226 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ddddcb1144
commit
90135f15b9
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2010-04-23 Jonathan Gillaspie <jonathan.gillaspie@testplant.com>
|
||||||
|
|
||||||
|
* Headers/AppKit/NSGraphics.h: NSBeep() - Don't crash when a
|
||||||
|
graphics context isn't available (eg - from a subthread).
|
||||||
|
|
||||||
|
|
||||||
2010-04-23 Wolfgang Lux <wolfgang.lux@gmail.com>
|
2010-04-23 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Source/NSAlert.m (NSRunAlertPanel): Fix incorrect return code
|
* Source/NSAlert.m (NSRunAlertPanel): Fix incorrect return code
|
||||||
|
|
|
@ -180,8 +180,10 @@ static inline void
|
||||||
NSBeep(void)
|
NSBeep(void)
|
||||||
{
|
{
|
||||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
NSGraphicsContext *ctxt = GSCurrentContext();
|
||||||
(ctxt->methods->NSBeep)
|
if (ctxt != nil) {
|
||||||
(ctxt, @selector(NSBeep));
|
(ctxt->methods->NSBeep)
|
||||||
|
(ctxt, @selector(NSBeep));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue