Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / muimaster / mui_rejectidcmp.c
blob6272bab82ca54c32f8e953537b3888e5cdb03d84
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 HISTORY
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 if (muiRenderInfo(obj) && (_flags(obj) & MADF_SETUP) && _win(obj))
51 if (muiAreaData(obj)->mad_hiehn.ehn_Events)
53 DoMethod(_win(obj), MUIM_Window_RemEventHandler, (IPTR)&muiAreaData(obj)->mad_hiehn);
55 muiAreaData(obj)->mad_hiehn.ehn_Events &= ~flags;
56 if (muiAreaData(obj)->mad_hiehn.ehn_Events)
58 DoMethod(_win(obj), MUIM_Window_AddEventHandler, (IPTR)&muiAreaData(obj)->mad_hiehn);
61 else
63 muiAreaData(obj)->mad_hiehn.ehn_Events &= ~flags;
66 AROS_LIBFUNC_EXIT
68 } /* MUIA_RejectIDCMP */