XMREMOVEPROTOCOLS(3)
π XmRemoveProtocols π
okay bestie, gather round, because this is one of those <Xm/Protocols.h> girlies and she's so important. this page is from the library call manual (that's the (library call) part, iykyk) and it's all about taking protocols back OUT. bye bye protocol π
β¨ NAME β¨
XmRemoveProtocols β a VendorShell function that removes the protocols from the protocol manager and deallocates the internal tables
like. the whole vibe is: protocols? gone. tables? freed. it's giving spring cleaning fr fr π
π SYNOPSIS π
#include <Xm/Xm.h>
#include <Xm/Protocols.h>
void XmRemoveProtocols(
Widget shell,
Atom property,
Atom * protocols,
Cardinal num_protocols);
yes she takes a Widget, an Atom, a pointer to Atoms, and a Cardinal. classic lineup. no cap.
πΈ DESCRIPTION πΈ
okay so here's the tea π΅
XmRemoveProtocols removes the protocols from the protocol manager and deallocates the internal tables. and bestie, listen β if any of the protocols are active, it will update the handlers and update the property if shell is realized. the way that it just handles that for you?? iconic behavior, honestly. π
XmRemoveWMProtocols is a convenience interface. It calls XmRemoveProtocols with the property value set to the atom returned by interning WM_PROTOCOLS. so if you're too busy being the main character to intern your own atom, she's got you π«Ά
now the parameters, one by one, no skips:
shellβ Specifies the widget with which the protocol property is associated. it's the widget the protocol property is attached to, okay?propertyβ Specifies the protocol property. literally the protocol property, that's it.protocolsβ Specifies the protocol atoms. a whole array of them β¨num_protocolsβ Specifies the number of elements inprotocols. because a pointer alone does not a count make, bestie. you gotta tell her how many.
and for a complete definition of VendorShell and its associated resources, see VendorShell(3). go read it. it's good for you. π
π¦ RELATED π¦
like a little squad. the add one, the remove one, the atom one, and the convenience one. the friend group of protocol management, periodt. π
lowkey reminder: this is the removal half of the duo. XmAddProtocols(3) puts them in, this page takes them out. keep them straight and you'll be fine π
and that's the whole page, babe β straight from the XmRemoveProtocols(library call) manual, source and all. mwah πβ¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms