Mercurial > wow > hansgar_and_franzok_assist
diff Libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua @ 51:dbf04157d63e v7.3.0.051
- ToC Update.
| author | Tercio |
|---|---|
| date | Sat, 02 Sep 2017 12:42:52 -0300 |
| parents | 52973d00a183 |
| children |
line wrap: on
line diff
--- a/Libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua Wed Jul 05 15:20:31 2017 -0300 +++ b/Libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua Sat Sep 02 12:42:52 2017 -0300 @@ -9,7 +9,7 @@ local select, pairs, print = select, pairs, print -- WoW APIs -local CreateFrame, UIParent, GetBuildInfo = CreateFrame, UIParent, GetBuildInfo +local CreateFrame, UIParent = CreateFrame, UIParent --[[----------------------------------------------------------------------------- Scripts @@ -131,12 +131,8 @@ for method, func in pairs(methods) do widget[method] = func end - -- SetText is deprecated, but keep it around for a while. (say, to WoW 4.0) - if (select(4, GetBuildInfo()) < 40000) then - widget.SetText = widget.SetLabel - else - widget.SetText = function(self, ...) print("AceGUI-3.0-Icon: SetText is deprecated! Use SetLabel instead!"); self:SetLabel(...) end - end + + widget.SetText = function(self, ...) print("AceGUI-3.0-Icon: SetText is deprecated! Use SetLabel instead!"); self:SetLabel(...) end return AceGUI:RegisterAsWidget(widget) end
