diff Bar.lua @ 82:5b7fd67a28ea

Fixed incorrect state propagator
author Flick <flickerstreak@gmail.com>
date Wed, 25 Jun 2008 23:03:06 +0000
parents 57f8151ea0f0
children f32e2375e39b
line wrap: on
line diff
--- 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.