I'd also be interested in an example of a proper way to set custom tooltips on secure action buttons. Up until the 2.1PTR the snippet:
<OnEnter>
MyMod_SetTooltip()
SecureStateAnchor_RunChild(self, "OnEnter", "onenterbutton");
</OnEnter>
seemed to do its job but I've never found it documented/explained. Since the 2.1 PTR the mod causes certain action buttons (from unrelated addons) to spew
these taint errors while my mod is active. (Remark 1 below for details)
Since the above mentioned OnEnter/Leave hooking is the only part of the code that feels bruteforced I'd also like to know the proper way to manually set tooltips on SecureActionButtons.
[1] My addon is called TotemGarden as seen in the error, however I'm not hooking OnClick intentionally. This error appears when clicking on buttons only. Entering or Leaving the other Action Buttons doesn't cause the messages. This happens still on the latest PTR as of 2007-04-26, not just on the "wacky" ptr builds from before.