tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / rom / intuition / clearmenustrip.c
blob50fe6d20be97e8b3f7dd2b0dbbdad369ff887618
1 /*
2 Copyright © 1995-2013, 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. Call this function before you
24 change menu 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 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 SANITY_CHECK(window)
48 ObtainSemaphore(&GetPrivIBase(IntuitionBase)->MenuLock);
49 window->MenuStrip = NULL;
50 ReleaseSemaphore(&GetPrivIBase(IntuitionBase)->MenuLock);
52 return;
54 AROS_LIBFUNC_EXIT
55 } /* ClearMenuStrip */