DTACTIONICON(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’– NAME πŸ’–

okay so, bestie, welcome to the DtActionIcon page from the library call manual β€” this is the function that gets you the icon information for an action. icon queen behavior, no cap πŸ’…

DtActionIcon β€” get the icon information for an action.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include &<Dt/Action.h>
char *DtActionIcon(
char *actionName);

Yes, the & before <Dt/Action.h> is literally there in the page β€” copy it exactly, bestie, don't "fix" it πŸ™ˆ.

πŸ’– DESCRIPTION πŸ’–

The DtActionIcon function gets the icon information for an action. The actionName argument is the name of the action. DtActionIcon returns the name of the icon associated with an actionName action.

If the action definition does not explicitly identify an icon name, this function returns the default action icon name, as described in dtactionfile(4) ("Action Selection"). The default action icon name can be customized using the actionIcon X resource.

If there are multiple actionName actions, the string returned is the icon associated with the most general action. The most general action is the one with the lowest precedence, as described in dtactionfile(4) ("Action Selection"). lowkey the hierarchy matters here, so don't skip that part πŸ‘‘

✨ RETURN VALUE ✨

Upon successful completion, the DtActionIcon function returns a newly allocated copy of the icon name string (the ICON field) associated with the action; otherwise, it returns NULL.

bestie, it's a newly allocated copy β€” that means you own it and you gotta free it. no leaking on my watch 😭

πŸŽ€ APPLICATION USAGE πŸŽ€

The DtActionIcon function is useful for applications that provide a graphical interface to actions. it's giving "I need an icon for this action" energy 🎨✨

The application should use XtFree(3) to free the icon name string returned by the DtActionIcon function.

🌈 SEE ALSO 🌈


mwah πŸ’‹ that's the DtActionIcon library-call page, bestie β€” no date or version line on this one, so catch u later 🫢

πŸ“¦ where this page comes from