Forgotten commit. Added automount.
[AROS.git] / rom / intuition / clearmenustrip.c
blob5322f74185f025686c18217a024939a4485184df
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/intuition.h>
14 AROS_LH1(void, ClearMenuStrip,
16 /* SYNOPSIS */
17 AROS_LHA(struct Window *, window, A0),
19 /* LOCATION */
20 struct IntuitionBase *, IntuitionBase, 9, Intuition)
22 /* FUNCTION
23 Detach menu stript from a window.
24 Call this function before you change memu data.
26 INPUTS
27 window - the window from which the menu bar should be detached
29 RESULT
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 SetMenuStrip()
40 INTERNALS
42 HISTORY
43 29-10-95 digulla automatically created from
44 intuition_lib.fd and clib/intuition_protos.h
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 SANITY_CHECK(window)
52 ObtainSemaphore(&GetPrivIBase(IntuitionBase)->MenuLock);
53 window->MenuStrip = NULL;
54 ReleaseSemaphore(&GetPrivIBase(IntuitionBase)->MenuLock);
56 return;
58 AROS_LIBFUNC_EXIT
59 } /* ClearMenuStrip */