XMREMOVEPROTOCOLCALLBACK(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– XmRemoveProtocolCallback πŸ’–

okay bestie, so this one is a library call from the Xm crew, and it's the un-invite button for protocol callbacks. yes, the removal one. the "we don't do that anymore" one. she's giving cleanup crew energy and honestly? iconic of her. 🧹✨


✨ NAME ✨

XmRemoveProtocolCallback β€” a VendorShell</u> function that removes a callback from the internal list

no cap, that's the whole job description. she removes. she doesn't add. don't ask her to add. πŸŽ€


🌸 SYNOPSIS 🌸

#include <Xm/Xm.h>
#include <Xm/Protocols.h>
void XmRemoveProtocolCallback(
Widget shell,
Atom property,
Atom protocol,
XtCallbackProc callback,
XtPointer closure);

the way she returns void... truly unbothered, gives nothing back, just does the thing. main character behavior fr fr. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

XmRemoveProtocolCallback removes a callback from the internal list. that's it. that's the sentence. short, sweet, and absolutely loaded. 😭

XmRemoveWMProtocolCallback is a convenience interface. she's the girl who handles it for you β€” she calls XmRemoveProtocolCallback with the property value set to the atom returned by interning WM_PROTOCOLS. so like, one less atom for you to babysit. you're welcome. 🫢

now let's meet the parameters, because they ALL matter, no skipping bestie:

  • shell β€” specifies the widget with which the protocol property is associated 🐚
  • property β€” specifies the protocol property
  • protocol β€” specifies the protocol atom βš›οΈ
  • callback β€” specifies the procedure to call when a protocol message is received πŸ“ž
  • closure β€” specifies the client data to be passed to the callback when it is invoked 🎁
ngl, yes β€” callback and closure are still described as what gets called when a protocol message is received, even though this function is the one doing the removing. they're the identity of the thing you're pulling out of the list. like, you gotta name her to un-invite her. 🌈

and for a complete definition of VendorShell and its associated resources, see VendorShell(3). go look, she's thorough. πŸ’œ


the little friend group!! one adds, one removes, one interns the atom, one is the convenience queen. all slaying in their own lanes. ⭐


the vibe check: if you came here looking for something to add a callback, you're in the wrong manpage bestie, that's the Add one, go find her. this page only takes away. and she's very good at it. πŸ’€

kisses, and remember to clean up your protocol callbacks β€” πŸ’– this has been the XmRemoveProtocolCallback page, filed under library call in the Xm manual, and the footer is literally just her name again in the library call section, because manpages love a dramatic reprise. βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ«Ά