2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 #define USE_BOOPSI_STUBS
10 #include <proto/alib.h>
11 #include <intuition/intuition.h>
12 #include <intuition/classusr.h>
13 #include <datatypes/datatypesclass.h>
14 #include <clib/boopsistubs.h>
15 #include <proto/dos.h>
16 #include <proto/intuition.h>
17 #include "datatypes_intern.h"
20 /*****************************************************************************
23 #include <proto/datatypes.h>
25 AROS_LH2(LONG
, RemoveDTObject
,
28 AROS_LHA(struct Window
*, window
, A0
),
29 AROS_LHA(Object
*, object
, A1
),
32 struct Library
*, DataTypesBase
, 16, DataTypes
)
36 Remove an object from the specified window's object list; this will wait
37 until the AsyncLayout process is ready. The object will receive a message
38 of type DTM_REMOVEDTOBJECT as a sign of it having been removed.
42 window -- pointer to the window in question
43 object -- pointer to the object to remove
47 The position of the object in the list before it was removed; if the
48 object wasn't found -1 is returned.
58 AddDTObject(), intuition.library/RemoveGList()
64 *****************************************************************************/
72 struct DTSpecialInfo
*dtsi
= ((struct Gadget
*)object
)->SpecialInfo
;
74 while(dtsi
->si_Flags
& DTSIF_LAYOUTPROC
)
79 retval
= RemoveGList(window
, (struct Gadget
*)object
, 1);
81 DoMethod(object
, DTM_REMOVEDTOBJECT
, 0);
87 } /* RemoveDTObject */