Transfer beep to GSDisplayServer

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13763 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-06-04 02:19:23 +00:00
parent 58ffd50370
commit c5612d5943
4 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-06-03 Adam Fedor <fedor@gnu.org>
* Source/GSDisplayServer.m (-beep): New method.
* Source/NSGraphicsContext.m (-NSBeep): Use it.
2002-06-02 Alexander Malmberg <alexander@malmberg.org>
Add basic color picker bundles: the wheel color picker and the

View file

@ -87,6 +87,8 @@ APPKIT_DECLARE NSString * GSScreenNumber;
- (void *) serverDevice;
- (void *) windowDevice: (int)win;
- (void) beep;
@end
/* ----------------------------------------------------------------------- */

View file

@ -423,6 +423,12 @@ GSCurrentServer(void)
return NULL;
}
/** Play the System Beep */
- (void) beep
{
[self subclassResponsibility: _cmd];
}
@end
/* ----------------------------------------------------------------------- */

View file

@ -1310,6 +1310,8 @@ NSGraphicsContext *GSCurrentContext()
@end
#include <AppKit/GSDisplayServer.h>
/* ----------------------------------------------------------------------- */
/* NSGraphics Ops */
/* ----------------------------------------------------------------------- */
@ -1338,7 +1340,7 @@ NSGraphicsContext *GSCurrentContext()
/** Play the System Beep */
- (void) NSBeep
{
[self subclassResponsibility: _cmd];
[GSCurrentServer() beep];
}
/** This method is used by the backend, but has been rendered obsolete.