XtRemoveCallbacks()XtRemoveCallbacks()Name
XtRemoveCallbacks - remove a list of callbacks from a callback list.
Synopsis
void XtRemoveCallbacks(object, callback_name, callbacks)
Widget object;
String callback_name;
XtCallbackList callbacks;
Inputs
object Specifies the object; may be of class Object or any subclass
thereof.
callback_name
Specifies the callback list from which the callbacks are to
be removed.
callbacks Specifies a NULL-terminated array of procedure/data pairs to
be removed from the callback list.
DescriptionXtRemoveCallbacks() removes each of the procedure/data pairs in call‐
backs from the callback list named by callback_name of object object.
Each callback is removed only if it exactly matches a procedure/data
pair registered on the callback list. If a procedure/data pair in the
callbacks array does not match a pair on the callback list, XtRemove‐
Callbacks() does nothing with that array element and does not generate
a warning message.
Because there is not an argument that specifies the number of elements
in the callbacks array, the last element of this array should be a
XtCallbackRec structure with NULL in both fields.
Usage
Because XtRemoveCallbacks() requires the caller to allocate and ini‐
tialize an array of procedure/data pairs, it may often be easier to
simply call XtRemoveCallback() repeatedly. The exception is when a
statically initialized array is used to both add and remove callbacks.
Structures
typedef struct _XtCallbackRec {
XtCallbackProc callback;
XtPointer closure;
} XtCallbackRec, *XtCallbackList;
See AlsoXtAddCallback(1), XtAddCallbacks(1), XtCallCallbacks(1), XtRemoveAll‐
Callbacks(1), XtRemoveCallback(1).
Xt - Callbacks XtRemoveCallbacks()