grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / muimaster / mui_rejectidcmp.c
blobf44f6229e8c35fc05d54be7855bc9e07b5435d89
1 /*
2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/intuition.h>
7 #include <intuition/classusr.h>
8 #include <clib/alib_protos.h>
9 #include <proto/muimaster.h>
11 #include "muimaster_intern.h"
12 #include "mui.h"
14 /*****************************************************************************
16 NAME */
17 AROS_LH2(VOID, MUI_RejectIDCMP,
19 /* SYNOPSIS */
20 AROS_LHA(Object *, obj , A0),
21 AROS_LHA(ULONG , flags, D0),
23 /* LOCATION */
24 struct Library *, MUIMasterBase, 16, MUIMaster)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
37 The function itself is a bug ;-) Remove it!
39 SEE ALSO
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 if (muiRenderInfo(obj) && (_flags(obj) & MADF_SETUP) && _win(obj))
49 if (muiAreaData(obj)->mad_hiehn.ehn_Events)
51 DoMethod(_win(obj), MUIM_Window_RemEventHandler,
52 (IPTR)&muiAreaData(obj)->mad_hiehn);
54 muiAreaData(obj)->mad_hiehn.ehn_Events &= ~flags;
55 if (muiAreaData(obj)->mad_hiehn.ehn_Events)
57 DoMethod(_win(obj), MUIM_Window_AddEventHandler,
58 (IPTR)&muiAreaData(obj)->mad_hiehn);
61 else
63 muiAreaData(obj)->mad_hiehn.ehn_Events &= ~flags;
66 AROS_LIBFUNC_EXIT
68 } /* MUIA_RejectIDCMP */