Blob Blame History Raw
'\" t
...\" DeactivA.sgm /main/8 1996/09/08 20:38:26 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl			\" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl			\" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie     \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie     !\\*(f4 \{\
.	ft \\*(f4
.	ds f4\"
'	br \}
.el .ie !\\*(f3 \{\
.	ft \\*(f3
.	ds f3\"
'	br \}
.el .ie !\\*(f2 \{\
.	ft \\*(f2
.	ds f2\"
'	br \}
.el .ie !\\*(f1 \{\
.	ft \\*(f1
.	ds f1\"
'	br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
.TH "XmDeactivateProtocol" "library call"
.SH "NAME"
\fBXmDeactivateProtocol\fP \(em A VendorShell function that deactivates a protocol without removing it
.iX "XmDeactivateProtocol"
.iX "protocols"
.iX "VendorShell functions" "XmDeactivateProtocol"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/Xm\&.h>
#include <Xm/Protocols\&.h>
\fBvoid \fBXmDeactivateProtocol\fP\fR(
\fBWidget \fBshell\fR\fR,
\fBAtom \fBproperty\fR\fR,
\fBAtom \fBprotocol\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBXmDeactivateProtocol\fP deactivates a protocol without removing it\&.
It updates the handlers and the \fIproperty\fP if
the \fIshell\fP is realized\&. It is sometimes useful to allow
a protocol\&'s state information (callback lists, and so on) to persist, even though
the client may choose to temporarily resign from the interaction\&.
The main use of this capability is to gray/ungray \fBf\&.send_msg\fP
entries in the MWM system menu\&.
To support this capability, \fIprotocol\fP is allowed to be in
one of two states: active or inactive\&.
If \fIprotocol\fP is active and \fIshell\fP is realized,
\fIproperty\fP contains the \fIprotocol\fP \fBAtom\fP\&.
If \fIprotocol\fP is inactive, \fBAtom\fP is not present in
the \fIproperty\fP\&.
.PP
\fBXmDeactivateWMProtocol\fP is a convenience interface\&.
It calls \fBXmDeactivateProtocol\fP
with the property value set to the atom returned by
interning \fBWM_PROTOCOLS\fP\&.
.IP "\fIshell\fP" 10
Specifies the widget with which the protocol property is associated
.IP "\fIproperty\fP" 10
Specifies the protocol property
.IP "\fIprotocol\fP" 10
Specifies the protocol atom
.PP
For a complete definition of VendorShell and its associated resources, see
\fBVendorShell\fP(3)\&.
.SH "RELATED"
.PP
\fBmwm\fP(1),
\fBVendorShell\fP(3),
\fBXmActivateProtocol\fP(3),
\fBXmDeactivateWMProtocol\fP(3), and
\fBXmInternAtom\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:22