DtWsmDeleteWorkspace(API)

๐Ÿ“ฆ
version 2.5.3 ยท 2 versions
, in nixos 26.05

okay so bestie, welcome to the DtWsmDeleteWorkspace(API) page ๐Ÿ’… โ€” itโ€™s giving โ€œdelete one specific workspaceโ€ energy, and honestly? iconic.

๐ŸŽ€ NAME ๐ŸŽ€

DtWsmDeleteWorkspace โ€” delete a specific workspace. no cap, thatโ€™s the whole assignment ๐Ÿ’–

โœจ SYNOPSIS โœจ

       #include &<Dt/Wsm.h>
       int DtWsmDeleteWorkspace(
       Widget widget,
       Atom workspace);

๐Ÿ’… DESCRIPTION ๐Ÿ’…

okay so hereโ€™s the tea โ˜•: the DtWsmDeleteWorkspace() function works with the CDE workspace manager, dtwm(1), and deletes a specific workspace. Applications can use this function to implement an interface to the workspace manager. slay ๐Ÿซถ

If the DtWsmDeleteWorkspace() function is not successful, the most likely reason for failure is that the CDE workspace manager, dtwm(1), is not running. like, thatโ€™s the big likely culprit ๐Ÿ˜ญ

The DtWsmDeleteWorkspace() function requires a widget. A gadget (or unrealized widget) is not acceptable for the widget argument. do not try to sneak one in, bestie ๐Ÿ’€

DtWsmDeleteWorkspace() sends a message to the CDE workspace manager, dtwm(1), to delete the workspace. If the workspace name is not valid, no action is taken and the workspace manager reports no error.

warning bestie: invalid workspace name = no action, and the workspace manager reports no error. itโ€™s giving silent treatment ๐Ÿ™ˆ

๐Ÿงš ARGUMENTS ๐Ÿงš

  • widget โ€” a realized widget. fr fr, it has to be realized; a gadget or unrealized widget is not acceptable here ๐Ÿ’…
  • workspace โ€” the name of the workspace (in X atom form) to delete โœจ

๐ŸŒˆ RETURN VALUE ๐ŸŒˆ

The function returns Success (0) when it succeeds, and non-zero when it fails. Note that these are not the same values _DtWsmDeleteWorkspace returns. yes, the underscore one is a different vibe โ€” do not mix them up ๐Ÿ‘‘

๐Ÿ’– SEE ALSO ๐Ÿ’–

  • DtWsm(5)
  • โ€œCommunicating with the Workspace Managerโ€ section in the CDE Programmerโ€™s Guide
  • โ€œWorkspace Managerโ€ section in the CDE Programmerโ€™s Overview

and thatโ€™s the footer, bestie: DtWsmDeleteWorkspace(API) ๐Ÿซถโœจ๐Ÿ’–

๐Ÿ“ฆ where this page comes from