xtremoveallcallbacks(3) [hpux man page]
XtRemoveAllCallbacks() XtRemoveAllCallbacks() Name XtRemoveAllCallbacks - delete all procedures from a callback list. Synopsis void XtRemoveAllCallbacks(object, callback_name) Widget object; String callback_name; Inputs object Specifies the object whose callbacks are to be deleted; may be of class Object or any subclass thereof. callback_name Specifies the name of the callback list from which procedures are to be removed. Description XtRemoveAllCallbacks() removes all callback procedures registered on the callback list named by callback_name in the object object. It also frees all memory allocated by the Intrinsics for that callback list. Usage This is a dangerous function to call, because callbacks that you are unaware of may have been registered on any list of your object. Sim- ply creating a widget may cause special resource converter destructor procedures to be registered on the widget's destroy callback, for example. If you use a convenience routine that creates both a dialog shell and the dialog child widget, as a further example, that conve- nience routine may register a destroy callback on the child so that the shell will be automatically destroyed if the child is destroyed. In general, you should use XtRemoveCallback() to remove specified procedure/data pairs that you have registered on a list. You can also use XtRemoveCallbacks() to remove an array of procedure/data pairs. See Also XtAddCallback(1), XtAddCallbacks(1), XtCallCallbacks(1), XtRemoveCallback(1), XtRemoveCallbacks(1). Xt - Callbacks XtRemoveAllCallbacks()
Check Out this Related Man Page
XtAddCallback(3Xt) XT FUNCTIONS XtAddCallback(3Xt) NAME
XtAddCallback, XtAddCallbacks, XtRemoveCallback, XtRemoveCallbacks, XtRemoveAllCallbacks - add and remove callback procedures SYNTAX
void XtAddCallback(w, callback_name, callback, client_data) Widget w; String callback_name; XtCallbackProc callback; XtPointer client_data; void XtAddCallbacks(w, callback_name, callbacks) Widget w; String callback_name; XtCallbackList callbacks; void XtRemoveCallback(w, callback_name, callback, client_data) Widget w; String callback_name; XtCallbackProc callback; XtPointer client_data; void XtRemoveCallbacks(w, callback_name, callbacks) Widget w; String callback_name; XtCallbackList callbacks; void XtRemoveAllCallbacks(w, callback_name) Widget w; String callback_name; ARGUMENTS
callback Specifies the callback procedure. callbacks Specifies the null-terminated list of callback procedures and corresponding client data. callback_name Specifies the callback list to which the procedure is to be appended or deleted. or the client data to match on the registered callback procedures client_data Specifies the argument that is to be passed to the specified procedure when it is invoked by XtCallbacks or NULL,. w Specifies the widget. DESCRIPTION
The XtAddCallback function adds the specified callback procedure to the specified widget's callback list. The XtAddCallbacks add the specified list of callbacks to the specified widget's callback list. The XtRemoveCallback function removes a callback only if both the procedure and the client data match. The XtRemoveCallbacks function removes the specified callback procedures from the specified widget's callback list. The XtRemoveAllCallbacks function removes all the callback procedures from the specified widget's callback list. SEE ALSO
XtCallCallbacks(3Xt) X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 Release 6.6 XtAddCallback(3Xt)