# HG changeset patch # User Flick # Date 1214434986 0 # Node ID 5b7fd67a28eae6f48190a0231687c99daa04e252 # Parent 57f8151ea0f0069a92607bc9f62d25088eb01602 Fixed incorrect state propagator diff -r 57f8151ea0f0 -r 5b7fd67a28ea Bar.lua --- a/Bar.lua Wed Jun 25 21:07:18 2008 +0000 +++ b/Bar.lua Wed Jun 25 23:03:06 2008 +0000 @@ -50,8 +50,8 @@ local bf = CreateFrame("Frame", nil, f, "SecureStateHeaderTemplate") bf:SetAllPoints() bf:Show() - bf:SetAttribute("useparent*",true) -- this facilitates SecureButton_GetModifiedAttribute() - bf:SetAttribute("statemap-parent","*:=") -- however some methods don't use it, so propagate the state too + bf:SetAttribute("useparent*",true) -- this facilitates SecureButton_GetModifiedAttribute() + bf:SetAttribute("statemap-parent","$input") -- However, we also need SetAttribute(state-parent) propagation too f:SetAttribute("addchild",bf) -- Both frames are read-only. Override the default accessors for this object.